How to send binary typed arrays through websocket?


#1

Suppose I want to make a first-person shooter with Meteor (suppose, using A-Frame for rendering), manipulated with, let’s suppose, Blaze.

We want the network communication to be FAST. Suppose we want to store game data in our own binary format.

WebSockets support sending typed array data. Is there a way to do this in Meteor?


#2

I would suggest you to have a look on this:


#3

I’ll recommend to use WebRTC/DC for this purpose.


#4

With WebRTC there’s no central authoritative server from which to, for example, prevent cheating in multiplayer games.


#5

That looks awesome, I will check it out. And the subscriptions, seems perfect. Multiplayer clients can send binary, then server will broadcast the updated info (player location, etc) to all other clients. Thanks!