This pull request adds the pubsub capability to the embedded WW server in order to enhance its functionality.
The main changes in this PR include:
The addition of the PubSubProvider field to the Node struct, which represents a pubsub provider for the server.
Modification of the Join method in the Node struct to initialize the pubsub provider using the j.pubsub function, passing the appropriate parameters.
In the Join method, the PubSubProvider field is assigned the value returned by the j.pubsub function.
In the vat.Export function call within the Join method, the PubSubProvider is included as part of the host.Server struct.
These changes enable the embedded WW server to support pubsub functionality, allowing for efficient communication and message distribution between connected clients.
This pull request adds the pubsub capability to the embedded WW server in order to enhance its functionality.
The main changes in this PR include:
PubSubProvider
field to theNode
struct, which represents a pubsub provider for the server.Join
method in theNode
struct to initialize the pubsub provider using thej.pubsub
function, passing the appropriate parameters.Join
method, thePubSubProvider
field is assigned the value returned by thej.pubsub
function.vat.Export
function call within theJoin
method, thePubSubProvider
is included as part of thehost.Server
struct.These changes enable the embedded WW server to support pubsub functionality, allowing for efficient communication and message distribution between connected clients.