-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or requestpackages:network-clientRelated to NetworkClient libraryRelated to NetworkClient librarypackages:network-serverRelated to NetworkServer libraryRelated to NetworkServer library
Description
Which package or utils is this feature request for?
network-client ; network-server
Feature
Currently to read or write data with network libraries, we need to use
network.tcp.sendData(new TextEncoder().encode(JSON.stringify(data)));This method isn't really accessible
Ideal solution or implementation
A solution can be the creation of an other lib network-utils that will be used by client and server.
This lib will provide class NetworkData that will act like NfFile in asset manager lib :
This data will be return by receive data and will allow user to choose in witch format he wants to get his data.
Also, the client and server library must implement a way to send all data types that will be provide by this NetworkData.
No need to specify the format of the data in the packet as the user will be aware of the data type that he sent.
Alternative solutions or implementations
No response
Other context
No response
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpackages:network-clientRelated to NetworkClient libraryRelated to NetworkClient librarypackages:network-serverRelated to NetworkServer libraryRelated to NetworkServer library