We built a system called Croquet that enables that.
Check out the last demo in the documentation link below. It is a multi-user three.js demo, but illustrates how any number of users can share a single world.
This uses a replicated computation model developed by Alan Kay (father of the PC), David P Reed (created UDP and co-created TCP), Andreas Raab and me (first realtime 3D adventure/shooter game, invented portals).
(This next is perhaps more on-topic...)
The suffix is a randomly generated session ID. That is what the system uses to determine who to connect to. You can use:
and it will generate a new session ID.
This is particularly nice, as it demonstrates a high performance physics engine (
https://rapier.rs/) running bit identical on multiple platforms and browsers.
We will be making the source for this demo available shortly (once the documentation is done).
Cheers!
David
David A. Smith
Twitter: @GoCroquet
Skype: inventthefuture
I am a part of all that I have met;
Yet all experience is an arch wherethro'
Gleams that untravell'd world whose margin fades
For ever and forever when I move.