This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Opened 6 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.