Unreal.js icon indicating copy to clipboard operation
Unreal.js copied to clipboard

"net" as a wrapper of "SocketSubsystem"

Open ghost opened this issue 3 years ago • 1 comments

So as we all know, we cannot use the core modules of node.js. Currently I'm in a dilemma about using a module which has a dependency on the "net" module.

Unreal Engine 4 has a full capable API to handle TCP and UDP connections, the "SocketSubsystem".

How feasible do you believe is it to make a "net" module as a wrapper of "SocketSubsystem" for Unreal.js?

Or as an option, to implement the "SocketSubsystem" API for Unreal.js. As I can see, it's completely missing, am I correct?

ghost avatar Jan 23 '21 13:01 ghost

I think it's pretty doable, but a fairly substantial undertaking. You'd need to match the API of net as closely as possible to the one in node.js to provide compatibility.

getnamo avatar Jan 24 '21 20:01 getnamo