Can I use socket.io with Play Framework 2.0 Web Sockets?

There is an example application that ships with Play Framework 2.0. The application uses the server side Play WebSocket implementation. I am wondering if I can use socket.io on the client side to connect to the server side Play WebSocket implementation?

+4
source share
1 answer

In theory, yes, you can make Socket.io connect to your websocket server with the corresponding ws url.

In practice, I tried, and I had some problems, so you may need to adapt Socket.io to work properly. Of course, I tried 2.0.1 or similar, so it can work now without any problems.

0
source

Source: https://habr.com/ru/post/1441710/


All Articles