Making a websocket server is easy.

Adding room logic in it is harder.

Making it distributed via redis is harder.

Spawning a thread that does physics for a collaborative game is even harder