Hi Eugen,

I like the look of the WebSocket library you shared:
https://github.com/TooTallNate/Java-WebSocket.  It is 100% Java, and
includes example code for both server and client.  Also it supports
multi-threading 'out of the box'.

So, if inside my Tapestry project's 'services' directory I create my own
WebSocket server, extending the abstract server class included in the
above library, it seems I can PUSH data out from the server simply by
calling this service whenever a user makes a change using the Tapestry
webapp.  This way any connected desktop app clients always reflect current
state.  Have I understood correctly?

Another small question... the demo server class in the above library
includes a main method with the below lines of code to start up the
server:

  WebSocketServer server = new SimpleServer(new InetSocketAddress(host,
port));
  server.run();

How do I start up this WebSocket server in the services directory of my
Tapestry project?

Thanks,

Chris.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to