aboutsummaryrefslogtreecommitdiff
path: root/tests/socket_cursor.js
blob: dc0ca7fb8591ca1b2d6d7345bfab4d4e068e3f34 (plain)
1
2
3
4
5
6
7
8
// Tests Socket.cursor and Socket.on('cursor')

socket = require('../socket');

world = new socket.Socket();

world.on('open', ()=>{world.cursor([22,23])});
world.on('cursor', (locs, send)=>{console.log(locs,send)});