blob: a613dc6a0514ca2f02f17263e9d7214cf4bc9cf8 (
plain)
1
2
3
4
5
6
7
8
|
// Tests Socket.fetch and Socket.on('fetch')
const socket = require('../socket');
let world = new socket.Socket();
world.on('open', () => {world.fetch([[10,10,10,10]])});
world.on('fetch', (tiles) => {console.log(tiles);})
|