Advertisement
Guest User

Untitled

a guest
Jan 20th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const chat = ws.subscribe('chat')
  2.  
  3. chat.on('ready', () => {
  4.   chat.emit('message', 'hello')
  5. })
  6.  
  7. chat.on('error', (error) => {
  8.   console.log(error)
  9. })
  10.  
  11. chat.on('close', () => {
  12. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement