@remixproject/plugin-ws
This library is a connector that connects a node server to using the `ws` library to the engine.
Last updated 2 months ago by grandschtroumpf .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @remixproject/plugin-ws 
SYNC missed versions from official npm registry.

Plugin ws

This library is a connector that connects a node server to using the ws library to the engine.

If you do not expose any API you can create an instance like this :

const wss = new WebSocket.Server({ port: 8080 });
wss.on('connection', (ws) => {
  const client = createClient(ws)
})

If you need to expose an API to other plugin you need to extends the class:

class MyPlugin extends PluginClient {
 methods = ['hello']
 hello() {
  console.log('Hello World')
 }
}
const wss = new WebSocket.Server({ port: 8080 });
wss.on('connection', (ws) => {
 const client = createClient(ws, new MyPlugin())
})

Current Tags

  • 0.3.7                                ...           latest (4 days ago)
  • 0.3.6                                ...           next (9 days ago)

38 Versions

  • 0.3.7                                ...           4 days ago
  • 0.3.6                                ...           9 days ago
  • 0.3.6-beta                                ...           15 days ago
  • 0.3.5                                ...           17 days ago
  • 0.3.5-beta                                ...           18 days ago
  • 0.3.4                                ...           a month ago
  • 0.3.3                                ...           2 months ago
  • 0.3.3-alpha                                ...           2 months ago
  • 0.3.2                                ...           2 months ago
  • 0.3.1                                ...           3 months ago
  • 0.3.0                                ...           3 months ago
  • 0.3.0-beta.14                                ...           3 months ago
  • 0.3.0-beta.13                                ...           3 months ago
  • 0.3.0-beta.12                                ...           4 months ago
  • 0.3.0-beta.11                                ...           4 months ago
  • 0.3.0-beta.10                                ...           4 months ago
  • 0.3.0-beta.9                                ...           4 months ago
  • 0.3.0-beta.8                                ...           4 months ago
  • 0.3.0-beta.7                                ...           4 months ago
  • 0.3.0-beta.6                                ...           4 months ago
  • 0.3.0-beta.5                                ...           4 months ago
  • 0.3.0-beta.4                                ...           4 months ago
  • 0.3.0-beta.3                                ...           5 months ago
  • 0.3.0-beta.2                                ...           5 months ago
  • 0.3.0-alpha.4                                ...           6 months ago
  • 0.3.0-alpha.3                                ...           6 months ago
  • 0.3.0-alpha.2                                ...           6 months ago
  • 0.2.1                                ...           6 months ago
  • 0.3.0-alpha.1                                ...           8 months ago
  • 0.2.0-alpha.5                                ...           a year ago
  • 0.2.0-alpha.1                                ...           a year ago
  • 0.0.3                                ...           a year ago
  • 0.0.2-alpha.4                                ...           a year ago
  • 0.0.2-alpha.3                                ...           a year ago
  • 0.0.2-alpha.2                                ...           a year ago
  • 0.0.2-alpha.1                                ...           a year ago
  • 0.0.2                                ...           a year ago
  • 0.0.1                                ...           a year ago
Downloads
Today 1
This Week 49
This Month 290
Last Day 23
Last Week 108
Last Month 242
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2017 © taobao.org |