Using the example code and getting this error.
1 Like
@saud you will have to add XD specific modules like application
to your webpack config like:
externals: {
scenegraph: "scenegraph",
application: "application"
}
1 Like
Thanks a ton!
I’m also trying to add the package (https://github.com/socketio/socket.io-client), do I have to do the same if i want to include that?
No, npm packages would be considered as “externals” however, some packages might not work on XD. In that case, please use WebSocket instead
2 Likes
Got it, thank you again.
I got the socket.io-client working if anyone is looking.
1 Like
Yes, kinda desperate even @saud
Can u provide your server and client code? I can’t make socket-io-client working on UXP, it cannot connect to the server with “xhr polling error”