2.0.5 • Published 3 years ago

@rivalis/protocol-websocket v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Rivalis WebSocket Protocol

GitHub Build Status GitHub Release) npm downloads Read docs Discord

To enable websocket protocol do the following:

// ...
const { WebSocketProtocol } = require('@rivalis/protocol-websocket')

const server = http.createServer()
const webSocketProtocol = new WebSocketProtocol({ server })

const rivalis = new Node({
    // add websocket instance inside array of transports
    transports: [ webSocketProtocol ]
    // ...
})

server.listen(2345)

License

The project is licensed under MIT License

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.2.1

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.4

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago