资 源 简 介
WebSockets for GWT
This project is intended to create a bit more than just a simple implementation of the html5 websocket-standard for gwt. Indeed there is just a plain implementation you are free to use, just take a look in the "de.csenk.gwtws.client.js" subpackage.
But why use just plain websockets? There are several drawbacks like you are only be able to transmit UTF-8 strings through the websocket connection. Inspired by the http://mina.apache.org project gwt-ws provides some high level functionality to handle websockets and transmit data.
Getting Started
Prepare GWT
In order to use WebSockets make sure your servlet container e.g. jetty supports this. Until now the gwt-ws framework itself only publishes an implementation of websockets for jetty. The default embedded jetty hasn"t support for websockets because websockets are enabled since version 7. GWT 2.0.3 uses a jetty 6.x instance. Just take a look