Skip to content
Jacob Jenkins edited this page Feb 20, 2016 · 3 revisions

Welcome to the SplitStreamrBackend wiki!

WebSocket Messages

Below is a list of WebSocket messages and their potential responses.

Message: 'new session'

Creates a new session with the user who created it marked as the leader.

The message should be in the format of:

{ "message": "new session" }

In the case of a session being created successfully, the server replies:

{ 
  "message": "new session",
  "session": "39dj9203"
}

Where session is the session created.

Message: 'join session'

Joins an active session.

The message should be in the format of:

{ 
  "message": "join session",
  "session": "39dj9203"
}

In the case of a session being joined successfully, the server replies:

{ 
  "message": "join session",
  "session": "39dj9203"
}

If the session does not exist:

{ 
  "message": "error",
  "error": "Session does not exist"
}
Clone this wiki locally