Websocket Server

4 views
Skip to first unread message

Trevor Benedict

unread,
Oct 3, 2011, 3:26:44 PM10/3/11
to unitt-project
Does someone have an example of an Websocket Server using this project?

Josh Morris

unread,
Oct 3, 2011, 7:30:38 PM10/3/11
to unitt-project
There is a testws project in SVN (http://unitt.googlecode.com/svn/
projects/iOS/testws/trunk) that is used to test communication from the
client to the server before I do builds and releases. You should
easily be able to run that. It uses Jetty which supports the different
versions of the specification so you should be able to use the 00 and
07 versions of the clients. Once you check it out, just run "mvn
jetty:run" on the command line to start it. If you have difficulty
using the client against a specific server, make sure you use the
right version of the client. I am adding a wiki page that explains
this part as most problems seem to stem from this.

Trevor Benedict

unread,
Oct 3, 2011, 8:34:23 PM10/3/11
to unitt-project
Using Jetty is a bit heavy for what im trying to do.
I was using https://github.com/TooTallNate/Java-WebSocket , but it
doesnt look like version 10 is going to be done anytime soon.
I just need a very simple server implementation. I was hopping the
unitt would be able to do this.

Josh Morris

unread,
Oct 3, 2011, 9:00:20 PM10/3/11
to unitt-project
I understand now. You want a lightweight server to host web socket
code, not to connect to. The server code is done for Java, but I have
not tested hooking it up to Netty. I am working on the SSL and proxy
support on the NIO version of the client before I move onto hooking up
the server code to Netty. It is high on my list of priorities. I just
have not been able to get to it yet.
Reply all
Reply to author
Forward
0 new messages