Refactor code

This commit is contained in:
Christian Kratky
2017-09-19 23:05:41 +02:00
parent 651f0aa15c
commit 305578e7e6
4 changed files with 9 additions and 18 deletions
@@ -28,10 +28,11 @@ namespace MQTTnet.Implementations
{
uri += ":" + options.Port;
}
_webSocket = new ClientWebSocket();
_webSocket.Options.KeepAliveInterval = options.KeepAlivePeriod;
await _webSocket.ConnectAsync(new Uri(uri), CancellationToken.None).ConfigureAwait(false);
RawReceiveStream = new WebSocketStream(_webSocket);
}