Refactoring: put WebSocketsServer in its own file