1.0.4 • Published 6 years ago

fortune-ws v1.0.4

Weekly downloads
287
License
MIT
Repository
github
Last release
6 years ago

Fortune WebSocket

Build Status npm Version License

This is a WebSocket implementation for Fortune.js, which implements a wire protocol based on MessagePack.

$ npm install fortune-ws --save

Usage

Consult the source code or the documentation website for more information.

const fortuneWS = require('fortune-ws')

// Pass in a Fortune instance and an optional change function,
// options object, and connection callback.
const server = fortuneWS(instance, change, options, callback)

// There is also a client request function.
const promise = fortuneWS.request(client, options, state)

// Automatically syncing client, given a Fortune instance.
const listener = fortuneWS.sync(client, instance)

The browser version includes the client implementations but not the server.

License

This software is licensed under the MIT license.

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

8 years ago

1.0.0

8 years ago