CollabVM 1.2 Protocol Reference: Difference between revisions

no edit summary
No edit summary
No edit summary
 
Send a public chat message to the server.
 
==== Request ====
 
<table class="wikitable">
<tr><td>Parameter 1</td><td>Chat message to send</td></tr>
</table>
 
==== Response ====
 
This opcode has no specific response, although the server will send a [[#Chat message|Chat message]] event for the message, provided it was not blocked or ratelimited.
 
=== Take turn ===
 
Request a turn on the VM.
 
==== Request ====
 
<table class="wikitable">
<tr><td>Parameter 1</td><td><code>1</code> to take a turn, <code>0</code> to cancel your turn. If not specified, the server will infer <code>1</code>.</td></tr>
</table>
 
==== Response ====
 
The server will send a [[#Turn queue update|Turn queue update]] assuming the request was not blocked or ratelimited.
 
=== Mouse Instruction ===
<tr><td>Parameter 1</td><td>Key symbol for the key being pressed as a base-10 integer. See [https://cgit.freedesktop.org/xorg/proto/x11proto/tree/keysymdef.h keysymdef.h] for a list (values are in hex and must be converted to base 10)</td></tr>
<tr><td>Parameter 2</td><td><code>1</code> to press the key, <code>0</code> to release.</td></tr>
</table>
 
=== Vote-for-reset ===
 
Vote for or against resetting the VM to snapshot.
 
<table class="wikitable">
<tr><td>Opcode</td><td><code>vote</code></td></tr>
<tr><td>Parameter 1</td><td><code>1</code> to vote in favor of a reset, <code>0</code> to vote against a reset. If there is no active vote, <code>1</code> is used to start one, while <code>0</code> has no effect.</td></tr>
</table>