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>,
}
path
the file path the user is currently in.point
is the cursor position (byte position).region_beg
is the beginning of the region (when active); omit ornull
if region is not active.region_beg
is the end of the region (when active); omit ornull
if region is not active.color_cursor
is the cursor color you want other clients to see. (customizable)color_region
is 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.