Bridge between websocket clients and Somata services, using ws.
npm install somata-websocket-server
swss = require 'somata-websocket-server'
swss {port: 5555}
From the client, connect with somata-websocket-client:
swsc = require 'somata-websocket-client'
client = swsc 'ws://localhost:5555'
Using with Polar or Express
http = require 'http'
polar = require 'polar'
swss = require 'somata-websocket-server'
server = http.createServer()
swss {server}
app = polar()
server.on 'request', app
app.get '/', (req, res) ->
res.render 'app'
server.listen 5999, -> console.log "Listening on :5999"