We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
For token authentication the secret key is located in the JS Object in config.js in the root directory
config.js
DON'T FORGET TO CHANGE THIS VALUE IN PRODUCTION.
When establishing a WebSocket connection, one must put the token as a token query param. e.g.
wss://sasc-help.com/socket?token=<TOKEN_VALUE>
The token should be a JWT token with the following payload data and JSON structure:
{ "type": "COUNSELOR", "name": "Joe" }
This will be subject to change after we add in the SMS features.
The following events will have listeners after the connection takes place. These are to be sent by the client when they're a student.
"<MSG_STRING>"
The following events will have listeners after the connection takes place. These are to be sent by the client when they're a counselor.
{ "convoId": "<UUID>", "msg": "<MSG_STRING>" }