You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to build a tool to connect to a socket.io server from within UE4. I have been running into problems trying to add socket.io-client as a dependency. I have written a small test script to try and use socket.io-client and every time I try I get a lot of errors where the system will not allow socket.io-client to require any of its own dependencies.
To reproduce:
Create a js script with the following code:
Save it into your scripts folder, then do npm i --save socket.io-client in the scripts folder.
Open a blank project, add an actor, and add a javascript component with the script source file pointing to the js script you created.
Add the plugin to the project folder and the v8 engine and the file links as shown on the project page.
I have been trying to troubleshoot more and so i added this as a script into the Examples directory and am able to use lodash but still can not use Socket.io-client.
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered:
Unreal.js is not fully compatible with standard javascript environments(node.js, webbrowsers). So modules which requires built-in functionalities like networking, filesystem, ... may be not working. Instead of using standard web socket libraries, unreal.js has its own web socket library. Unfortunately its api is not compatible with standard one.
I am trying to build a tool to connect to a socket.io server from within UE4. I have been running into problems trying to add socket.io-client as a dependency. I have written a small test script to try and use socket.io-client and every time I try I get a lot of errors where the system will not allow socket.io-client to require any of its own dependencies.
To reproduce:
Create a js script with the following code:
Save it into your scripts folder, then do npm i --save socket.io-client in the scripts folder.
Open a blank project, add an actor, and add a javascript component with the script source file pointing to the js script you created.
Add the plugin to the project folder and the v8 engine and the file links as shown on the project page.
I have been trying to troubleshoot more and so i added this as a script into the Examples directory and am able to use lodash but still can not use Socket.io-client.
Any help would be really appreciated!
The text was updated successfully, but these errors were encountered: