Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public void RemoveAllSubscriptions()
_typeMap.Clear();
}

private void ConnectSocket(string uri)
private void ConnectSocket(string uri, string uri_proxy = null, string username_proxy = null, string password_proxy = null)
{
WebSocket = new WebSocket(uri);
WebSocket.OnMessage += (sender, e) =>
Expand All @@ -130,6 +130,12 @@ private void ConnectSocket(string uri)
Console.WriteLine(ex);
}
};

if (uri_proxy != null)
{
WebSocket.SetProxy(uri_proxy, username_proxy, password_proxy);
}

WebSocket.Connect();
}

Expand Down