Skip to content

Uncaught exception: WebGL with Unity #451

@Xwilarg

Description

@Xwilarg

Hi,

I'm trying to use websocket-sharp for a Unity project on WebGL.
It's working well when I make an executable for Windows but when I export in WebGL and launch it, it give me the following error:
Invoking error handler due to uncaught exception: abort(92) at jsStackTrace (FeranGateWebGL.asm.framework.unityweb:2:27460)
I attempted to make the most basic program to reproduce the error so I did the following:
Compiling the dll and putting it in a "Plugins" folder
Having a script with this code:
`using UnityEngine;
using WebSocketSharp;

public class NetworkScript : MonoBehaviour {

private void Start()
{
    WebSocket ws = new WebSocket("ws://IP:PORT/msg");
    ws.Connect();
}

}
`
So well if someone have an idea I would really appreciate :)

Thanks in advance,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions