Public | Automated Build

Last pushed: 6 months ago
Short Description
socket io for leashapp
Full Description

SOCKET API FOR LEASHAPP

Listeners:

1) 'connection' (must emit this before other listeners)

2) 'join'

  • input: {user_one_id, user_two_id}
  • joins to a room (room id is user_one_id + user_two_id)

3) 'unsubscribe'

  • leaves the room

4) 'chat message'

  • input: {
    access_token
    user_one_id
    user_two_id
    message
    }
  • will post message to database and also emit 'chat message' to room

Emitters:

1) 'chat message'

  • will send you back JSON containing:
    {access_token, user_one_id, user_two_id, message}
Docker Pull Command
Owner
shamsali
Source Repository