Move WebSocket type to utils.