Booth
WebSocket interaction based on protocol idea, not on events.
idea
The idea: when we need WebSocket we need not events, but protocol: some requests & responses, similar to HTTP environment.
The library consists of three types of objects:
- requests: one side can ask other with request, response is required (will be returned as promise with timeout)
- realtime: one side can push realtime data to another, data can be filtered on the other side
- realtime-broadcasting: push realtime data to all clients
todo
- file transmission
- correct Bluebird isOperational error
- fix working as a part in web-server like express
- support reconnects
docs
Booth has simple symmetric API.
You can see descriptive example on gh-pages.
license
MIT. Copyright © 2015 StrangeTransistor.