Sample implementation of websockets using a NodeJs server and a Scala client.
Scala client uses spray-websocket and provides a WebSocketClient abstract class extending websocket.WebSocketClientWorker. WebSocketClient simplifies websocket.WebSocketClientWorker's API
- Depends on ws module
- Main file:
nodeServer/server.js - Listens on:
localhost:9001 - Install:
npm install - Run:
npm start
- Depends on akka Actors and spray-websocket
- Main file:
scalaClient/src/main/scala/client/WebSocketClientExample.scala - Connects to:
localhost:9001 - Compile:
sbt compile - Run:
sbt run