Closed wout-junius closed 2 years ago
So the program exits whitout connecting to my server. It exits with no exceptions or problems.
(process 25504) exited with code 0.
Socket.io client version : 3.0.6
3.0.6
Code:
class Program { public static void Main() { MainAsync().GetAwaiter().GetResult(); } private static async Task MainAsync() { var client = new SocketIO("http://localhost:8080"); client.On("message", response => { Console.WriteLine(response); }); /* client.OnConnected += async (sender, e) => { // Emit a string await client.EmitAsync("register", ".Net App"); };*/ await client.ConnectAsync(); } }
Issue resolved by adding Console.Readline() to leave the app open.
So the program exits whitout connecting to my server. It exits with no exceptions or problems.
(process 25504) exited with code 0.
Socket.io client version :
3.0.6
Code: