public override void Send(OutboundMessage message) { this.Socket.Send(message.ToBytes()); }
public override void Send(OutboundMessage message) { ArraySegment <byte> buffer = new ArraySegment <byte>(message.ToBytes()); Socket.SendAsync(buffer, WebSocketMessageType.Text, true, CancellationToken.None); }