diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 21:17:31 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-12-19 21:17:31 +0100 |
| commit | c1f5e3337aee07fb6378374b4b7cc5db847e4c15 (patch) | |
| tree | f3437cc979970754294f95369d3e8c4c2b98816f /app/client/socket | |
| parent | a0fa03a9a0219771e0173db5a811d20b20fe3ba0 (diff) | |
updating params
Diffstat (limited to 'app/client/socket')
| -rw-r--r-- | app/client/socket/socket.live.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/client/socket/socket.live.js b/app/client/socket/socket.live.js index a1a7a3f..279ba84 100644 --- a/app/client/socket/socket.live.js +++ b/app/client/socket/socket.live.js @@ -53,6 +53,11 @@ socket.on('res', (data) => { socket.on('frame', player.onFrame) +export function send_command(cmd, payload) { + socket.emit('cmd', { + cmd, payload, + }) +} export function list_checkpoints(module) { socket.emit('cmd', { cmd: 'list_checkpoints', |
