Crash on connection
Hi there,
I have this little test c# server
using SocketIOSharp.Common;
using SocketIOSharp.Server;
namespace Renderapp_client
{
public class SocketIO
{
static SocketIOServer server;
public SocketIO(ushort port)
{
server = new SocketIOServer(new SocketIOServerOption(port));
server.OnConnection((socket) =>
{
Console.WriteLine($"Client connected!");
socket. On(SocketIOEvent.DISCONNECT, () =>
{
Console.WriteLine("Client disconnected!");
});
});
}
public void Connect()
{
server. Start();
}
public void Disconnect()
{
server. Stop();
}
public void SendMessage(string message)
{
server.Emit("echo", message);
}
}
}
and this blueprint

and as soon as I click play, I can see UE connecting with the server and immediately crashing the UE editor.
Any idea why?
I use the latest versions of everything.
Many thanks, Nick
hm, so I've downloaded the example project, upgraded it to UE5.1 and I used its server and looks like it's working. So, I assume it's the C# code/Library. Anyone have any experience with a working C# socket.io server library?
Logs will help at pointing to what the client thinks is missing from spec. NB that this client expects socket.io protocol v3 or newer, check which protocol version the server is expecting.
hi @getnamo ,
Many thanks for the quick reply.
SocketIOSharp mentions that: SocketIOSharp is a Socket.IO protocol revision 4 library....
Regarding the crash log, I didn't find anything obvious but here you go:

and here's the whole crash log folder https://1drv.ms/u/s!AkpIm5Ify5v9prgjVPzrnRTm-eWWig?e=VILdmf
Not sure if that helps.
Many thanks again, Nick
ps: also, quick question to save everyone from starting another thread in case the answer is a simple "NO", does this plugin support editor mode? I can't find anything regarding editor mode. 🤷♂️