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

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

world = new Socket();

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