aboutsummaryrefslogtreecommitdiff
path: root/tests/socket_fetch.js
blob: b558f89da80d38e8b0dc9b6448804fad55f3f28e (plain)
1
2
3
4
5
6
7
8
// Tests Socket.fetch and Socket.on('fetch')
const Socket = require('../socket');

let world = new Socket();

world.on('open', () => {world.fetch([[10,10,10,10]])});

world.on('fetch', (tiles) => {console.log(tiles);})