written documentation for WebSocketUpgrade