-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Description
The p2p extension is cool but it has some limitations and is not the fastest. Some limitations are that if you want a server architecture, people can potentially steal your connection UID and take control of the server, plus you need to basically run the server in a headless browser (not the best in resources management). It also has the annoying 250 simultaneous connection limit.
Solution suggested
We could adapt the asynchronous to synchronous queueing system of the peer to peer extension for socket.io and socket.io-server, to let users write their own servers (only catch is servers would only work in a node environment) and clients. This would allow making real lan games, reliable server client architectures, an architecture like Minecraft (if you multiplayer host a server) etc.
Alternatives considered
We could also use websockets but socket io has fallbacks in case they are not supported and adds auto reconnect on unreliable connections.
Prerequisites
We need two things to be done before implementing this issue:
- Let people use the p2p extension for a while to be sure it's event system is reliable.
- NPM dependencies ([Final Review in Progress] Add dependencies and properties to Extensions #1717) for socket.io-server