1iveowl / WebsocketClientLite.PCL

Websocket client lite
MIT License
39 stars 14 forks source link

Doesn't connect with proxy #48

Closed malygin-g closed 6 years ago

malygin-g commented 6 years ago

Hi, I use slackconnector (https://github.com/noobot/SlackConnector/) and it can't connect with proxy: p.s. The error seems to be with the nuget library is WebsocketClientLite.PCL System.InvalidOperationException HResult=0x80131509 Message=The operation is not allowed on non-connected sockets. Source=System StackTrace: at System.Net.Sockets.TcpClient.GetStream() at SocketLite.Services.TcpSocketClient.d19.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at WebsocketClientLite.PCL.MessageWebSocketRx.d15.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at SlackConnector.Connections.Sockets.WebSocketClientLite.d7.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at SlackConnector.Connections.ConnectionFactory.d0.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at SlackConnector.SlackConnector.d5.MoveNext() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() at TopShelf2.SlackConnect.d4.MoveNext() in C:\mygit\TopShelf2\TopShelf2\Program.cs:line 40

1iveowl commented 6 years ago

Did you read the section in the Readme about Slack?

Itsey commented 6 years ago

@malygin-g did you manage to get an answer to this? I dont think that the readme covers it and it appears that this implementation doesnt support corporate proxies.