This is a WebSocket implementation for Fortune.js, which implements a wire protocol based on MessagePack.
$ npm install fortune-ws --save
Consult the source code or the documentation website for more information.
const fortuneWS =// Pass in a Fortune instance and an optional change function,// options object, and connection callback.const server =// There is also a client request function.const promise = fortuneWS// Automatically syncing client, given a Fortune instance.const listener = fortuneWS
The browser version includes the client implementations but not the server.
This software is licensed under the MIT license.