2.0.1 • Published 6 months ago

bare-ws v2.0.1

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 months ago

bare-ws

WebSocket library for JavaScript.

npm i bare-ws

Usage

const ws = require('bare-ws')

const server = new ws.Server({ port: 8080 }, (socket) => {
  socket.on('data', (data) => {
    console.log(data.toString())
  })
})

server.on('listening', () => {
  const socket = new ws.Socket({ port: 8080 })

  socket.write('Hello WebSocket')
})

License

Apache-2.0

2.0.1

6 months ago

2.0.0

7 months ago

1.3.1

10 months ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago