E
E
Eugene2014-04-28 17:25:22
Google Web Toolkit
Eugene, 2014-04-28 17:25:22

How to implement the WebSocket protocol in a GWT project?

Good day to all. I've been trying for a week now to implement a simple way to exchange messages over the Websocket protocol. Nothing works, I don’t even know how, but the example I found on the net is not working. ( www.youtube.com/watch?v=NN5qmxb15lY)
Has anyone already implemented something like this? Please share your solution.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
Timur, 2014-04-29
@evgeniy_p

On the client side, it is implemented in elementary native JS.
www.tutorialspoint.com/html5/html5_websocket.htm
I haven't tried it on the server side, but in theory you can implement it on the latest tomcat
https://www.openshift.com/blogs/how-to-build-java-...
docs.oracle .com/javaee/7/tutorial/doc/websocket.htm
Upd. Watched the video. Didn't know about this library. I'll take it on board.
In any case, I advise you not to bother with wrappers for js on the client first, but simply test the connection with a valid websocket with native js.
For example www.websocket.org/echo.html.

A
Anton Kuzmichev, 2014-04-28
@Assargin

bombermine.ru - they definitely have websockets, I read somewhere for a long time that something like GWT

A
aleksey, 2014-12-27
@aleksey-popryaduhin

Here is an example of a wrapper in JSNI from a developer from Google https://github.com/realityforge/gwt-websockets
Here you can track the request to add web sockets features to GWT https://code.google.com/p/google-web-toolkit /issue...

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question