Update WebSocketConnection.cs

The BeginWrite method cannot be called when another write operation is pending