ws.on('open', () => ws.send('v2'); ws.send('aMyBot'); ws.send('pen'); );
These are the most common "hooks" used to make your custom game interactive: Transformice Wiki eventChatCommand(playerName, message) : Triggers when someone types a command starting with eventKeyboard(playerName, keyCode, down, x, y) transformice api
Transformice communicates using (low-level codes). For example, a specific code tells the server "I jumped," while another says "I typed in chat." Learning to parse these packets is what separates a novice from an expert API developer. Popular Community Projects Using the API transformice api