Note: If you want to run all backend services along with the clientside development server, check out the main README.md
instructions
To begin developing on the realtime websocket server, run the following from the socket-server
folder:
yarn
yarn start
Documentation Table of Contents:
- Client Events API (Client Emitters)
- Server Events API (Server Emitters)
Emit to the server when component has loaded and is ready to receive updates
payload: {}
Emit to the server when user has changed the state of the code editor
payload: {
text: STRING
}
Emit to the server when a user wants to run the code in the code editor
payload: {}
Emit to the server when the code editor component unmounts (user navigates away from the editor page)
payload: {}
Emit to the server when the user sends a message via chat
payload: {
message: STRING,
username: STRING
}
Emitted initially (once) by the server after client has verified that it is ready to begin rendering code editor text updates
payload: {
text: STRING
}
Emitted by the server when the state of the code editor is altered by another client
payload: {
text: STRING
}
Emitted by the server when the stdout from the code editor has been evaluated
payload: {
stdout: STRING
}
Emitted by the server when another client leaves the code editing session
payload: {}
Emitted by the server when another client sends a message via chat
payload: {
message: STRING,
username: STRING
}