Re: ServerSocket from within Tapestry

"Christopher Dodunski" <[email protected]>
Newsgroups gmane.comp.java.tapestry.user
Message-ID <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.