diff options
author | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-20 18:07:55 -0500 |
---|---|---|
committer | Holden Rohrer <holden.rohrer@gmail.com> | 2019-12-20 18:07:55 -0500 |
commit | 6c912dc1511c7eb17b2c2ff43c1023e8fb9aff78 (patch) | |
tree | 9b2c7e8df270b24a76ddbc4c0897b712d5a9eb65 /tests | |
parent | b33eac1d74585b1df6f529736a22c1bdacdf694a (diff) |
added tileUpdate Socket test
Diffstat (limited to 'tests')
-rw-r--r-- | tests/socket_tiles.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/socket_tiles.js b/tests/socket_tiles.js new file mode 100644 index 0000000..bf1b9de --- /dev/null +++ b/tests/socket_tiles.js @@ -0,0 +1,9 @@ +// Tests Socket.on('tileUpdate') + +const Socket = require('../socket'); + +main = new Socket(); + +main.on('tileUpdate', (send, source, tiles)=>{ // Should just print a log of any tile updates on the main world + console.log(tiles); +}); |