Coxer
Coxer

Reputation: 1704

Scala/Akka websocket server library

I need a websocket server in order to be able to deliver server side events to my web application. Is there any library to build a websocket server using scala, preferably akka?

Upvotes: 2

Views: 1638

Answers (1)

Dave Swartz
Dave Swartz

Reputation: 910

The Play Framework (http://www.playframework.com/) has strong support for web sockets (http://www.playframework.com/documentation/2.2.2/ScalaWebSockets). Play also plays well with Akka (http://www.playframework.com/documentation/2.2.2/ScalaAkka).

Note: SSEs are not WebSockets. WebSockets are for duplex communication between server and client while SSEs are only server to client. Both can be done in Play. See http://matthiasnehlsen.com/blog/2013/05/01/server-sent-events-vs-websockets/ for an illustrative example.

Upvotes: 4

Related Questions