Skip to content

catalyzapp/socketchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Chat Events

  • Format:
/<trigger-event>
     <{event data}>
     /<response-event>
        <{response data}>
  • Test End Point
/test 
    /test_back
        { data: 'test run' }

  • API End Points
/join
    { mentor: <mentor-id>, mentee: <mentee-id> }
    /joined
        { data: ['chat history'] }
/leave
    { mentor: <mentor-id>, mentee: <mentee-id> }
    /left
        {  data: 'leaving room' }
/send_msg
    { data: <messsage>, mentor: <mentor-id>, mentee: <mentee-id>, _id: <sender-id>, lang: <en|es>  }
    /msg_sent
        { data: <message>, _id: <sender-id> }
/disconnect
    { mentor: <mentor-id>, mentee: <mentee-id>  }
    /disconnected
        { data: disconnected }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published