add ?spectator=true to socket URL when available, otherwise the server redirects you when spectating a public game.