Based on Spring 4.2.6
- you need maven 3.
git clone
andmvn jetty:run
to start the embedded Jetty server.- open
http://localhost:8080/index.html
and enjoy.
Once the Jetty server started, there are some URI available for WebSocket transport:
ws://localhost:8080/handlerA
andws://localhost:8080/handlerB
for raw WebSocket.http://localhost:8080/sockjs/handlerA
andhttp://localhost:8080/sockjs/handlerB
for SockJS.http://localhost:8080/stomp
for SockJS + STOMP.
For more detail, view SpringMVC.xml.
Based on Netty 4.1.9.Final
- you need maven 3.
git clone
andmvn jetty:run
- open a new terminal window and
mvn exec:java -Dexec.mainClass=me.jxy.websocket.netty.Demo
- open
http://localhost:8080/index.html
This server is very simple, just a demo. Only one URI ws://localhost:12345/websocket
is available for raw WebSocket.