Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on connection #368

Open
sinokgr opened this issue Feb 22, 2023 · 3 comments
Open

Crash on connection #368

sinokgr opened this issue Feb 22, 2023 · 3 comments

Comments

@sinokgr
Copy link

sinokgr commented Feb 22, 2023

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
image

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

@sinokgr
Copy link
Author

sinokgr commented Feb 22, 2023

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?

@getnamo
Copy link
Owner

getnamo commented Feb 23, 2023

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.

@sinokgr
Copy link
Author

sinokgr commented Feb 23, 2023

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:
image

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. 🤷‍♂️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants