Opened 5 years ago

#5321 new enhancement

Object-oriented JS networking interface

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Backlog
Component: Network Keywords:
Cc: Patch:

Description

Currently all functions in JSInterface_Networking.cpp refer to a singleton g_NetServer / g_NetClient instance.

But it would be more structured to have JS decide the instance of the NetClient / NetServer and call networking functions as properties of a JS object, similar to GUI functions exposed to JS also being exposed per-object.

Beyond separation of concerns and removing globals in C++, it would also allow JS to handle multiple servers or clients within the same application instance.

Change History (0)

Note: See TracTickets for help on using tickets.