2.0.5 • Published 4 years ago

@rivalis/client-browser v2.0.5

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

Rivalis Browser Client

GitHub Build Status GitHub Release) npm downloads Read docs Discord

To connect from browser to your rivalis server you can do the following:

const { WebSocketClient } = require('@rivalis/client-browser')

const client = new WebSocketClient({
    baseURL: 'ws://localhost:3000', // baseURL must be the host, port & path to the endpoint where your websocket protocol is exposed
})

client.connect(ticket) // you need to pass ticket "string" to the server to pass the authentication and establish the connection
client.send('example.action', 'any data') // send your first action to the server

License

The project is licensed under MIT License

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago