socketio4net

SocketIO4Net - Error initializing handshake with https://localhost/

三世轮回 提交于 2020-01-06 14:37:07
问题 I'm trying to use SocketIO4Net to connect with my node.js server via socket.io. Can't seem to get it to work, when it comes to HTTPS. Getting this: Error initializing handshake with https://localhost/ Couldn't find a solution in other similar questions. If you have other solutions to connect to socket.io sockets from C# feel free to share the information. 回答1: .NET seems to block my self signed certificate. Implementing the RemoteCertificateValidationCallback seems to solve the problem.

SocketIO4Net Handshake Error

无人久伴 提交于 2019-12-24 14:23:28
问题 I've got a problem with the connection of a client to a socket.io server. I have following code: private Client _Client; private void Initialize(string websocket) { try { this._Client = new Client(websocket); this._Client.Connect(); if (!this._Client.IsConnected) throw new Exception("Connection to websocket wasn't successfully: " + this._Client.HandShake.ErrorMessage); } catch (Exception ex) { Logging.Write("Fehler bei der SocketIO-Connection: " + ex.Message); Logging.WriteLine("incomplete!",

No messages received in SocketIO4net

扶醉桌前 提交于 2019-12-24 12:38:28
问题 I am attempting to consume a socket.io API using SocketIO4net however cannot seem to receive any messages. In the same VS2010 solution, I have a website with the following code: <script src="https://api.icbit.se/socket.io/socket.io.js"></script> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script> <script> $(document).ready(function () { var conn = io.connect('http://api-url'); conn.on('connect', function () { alert('Connected'); conn.emit('message', { op:

Newtonsoft.json assembly package version mismatch

微笑、不失礼 提交于 2019-11-27 09:01:50
I am trying to use SocketIO4Net to create socket.io client in .net. Itseems SocketIO4Net has a dependency of Newtonsoft.Json >= 4.0.8. I also am using PushSharp library which has a Newtonsoft.Json dependency of >= 4.5.10. I got NewtonSoft.Json 4.5.11 when i first installed PushSharp and I thought this version should support SocketIO4Net as well since its a higher version but i get this error whenever am trying to connect to socket.io server. Could not load file or assembly 'Newtonsoft.Json, Version=4.0.8.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The

Newtonsoft.json assembly package version mismatch

自作多情 提交于 2019-11-26 11:24:45
问题 I am trying to use SocketIO4Net to create socket.io client in .net. Itseems SocketIO4Net has a dependency of Newtonsoft.Json >= 4.0.8. I also am using PushSharp library which has a Newtonsoft.Json dependency of >= 4.5.10. I got NewtonSoft.Json 4.5.11 when i first installed PushSharp and I thought this version should support SocketIO4Net as well since its a higher version but i get this error whenever am trying to connect to socket.io server. Could not load file or assembly \'Newtonsoft.Json,