Validate the option names passed into the WebSocket constructor.