Migrate websocket server to new user middleware