Strikeeaglechase
Cast value's in object[] to type based on result from method.GetParameters
Basically I am trying to
.Invoke
a method, I have a list of parameters however the list contains objects of the wrong type. I would like to be able to do something like this:
I tried implementing implicit operator int
, as well as using Convert.ChangeType
, however neither have worked9 replies
❔ Websocket connection fails, however a javascript websocket can connect to server fine
I am using
System.Net.WebSockets
to create a websocket client to a websocket server I am running. The following code is used to create the websocket
The following error is produced:
System.Net.WebSockets.WebSocketException (0x80004005): Unable to connect to the remote server ---> System.Net.Sockets.SocketException (0x80004005): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
The confusing part to me, the following code in javascript works perfectly fine
And if I log the messages I receive, they are what I expect/work perfectly fine.
What would cause a JS websocket to work, but not a C# one?3 replies