Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const chat = ws.subscribe('chat')
- chat.on('ready', () => {
- chat.emit('message', 'hello')
- })
- chat.on('error', (error) => {
- console.log(error)
- })
- chat.on('close', () => {
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement