Hi I am attempting to use websocket-sharp to open a socket to connect to my node.js backend, but I am running into a compiler error listed below. However, all the examples using websocket-sharp seem absolutely identical. I am at a loss at this point, and was hoping someone could point me in the right direction.
COMPILER ERROR Delegate System.Func' does not take2' arguments
private void OpenSocket(string cmd){
using (var websocket = new WebSocket ("ws://127.0.0.1:3000/socket.io/?EIO=2&transport=websocket")) {
websocket.OnMessage += (sender, e) => websocket.Send ("Hi There");
websocket.Connect();
websocket.Send ("TEST");
Console.ReadKey (true);
}
}
===Full Code=== https://gist.github.com/MicahRamirez/986f8168b9fa8c4c1e9e
===WebSocket-Sharp Ex Usage=== https://gist.github.com/MicahRamirez/0c23d6aa1b9bf8e5613aO