Answer the question
In order to leave comments, you need to log in
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
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.
bombermine.ru - they definitely have websockets, I read somewhere for a long time that something like GWT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question