room::update_client
Update a single client’s information.
This request should be sent every almost every state change since the server will need to notify other clients to update their state.
{
"method": "room::update_client",
"path": <path>,
"point": <number>,
"region_beg": <number>,
"region_end": <number>,
"color_cursor": <color>,
"color_region": <color>,
}
paththe file path the user is currently in.pointis the cursor position (byte position).region_begis the beginning of the region (when active); omit ornullif region is not active.region_begis the end of the region (when active); omit ornullif region is not active.color_cursoris the cursor color you want other clients to see. (customizable)color_regionis the region color you want other clients to see. (customizable)
Example response
{
No response
}
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.