Skip to content

📲 A distributed WebSocket Server with high level abstractions and HTTP APIs

License

Notifications You must be signed in to change notification settings

solver-workshop/ws-center

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ws-center

Build Status

A distributed WebSocket server with high level abstractions and HTTP APIs, based on socket.io and its redis adapter.

API Documentation

https://solver-workshop.github.io/ws-center

How to use

Server

Change the configurations in /config folder, and deploy this application.

Client

Clients can use socket.io client to communicate with the server.

const SocketClient = require('socket.io-client')

const client = SocketClient('http://localhost:9001', {
  query: { userId: id },
  path: '/ws'
})

client.on('message', function (body) {
  // ...
})

client.on('connect', function () {
  // ...
})

Releases

No releases published

Packages

No packages published