How can I create client WebSocket in Play2 using Scala?
Should I use external library? I found: http://backchatio.github.io/hookup/
Do you know any alternatives?
How can I create client WebSocket in Play2 using Scala?
Should I use external library? I found: http://backchatio.github.io/hookup/
Do you know any alternatives?
I believe play currently lacks client side web sockets but this may change in future as Akka-HTTP is integrated with play. However for now since you can call java from scala you can use javax.websocket or jboss.netty.
A good example for Play 2 Scala Websocket (both client-side and server-side) can be found here:
https://github.com/playframework/playframework/tree/2.2.2/samples/scala/websocket-chat
© 2022 - 2024 — McMap. All rights reserved.