Defines the API for the ports that are required to interface with JS.
{ send : Send datatype msg
, receive : Receive datatype msg
}
This is the API that the ports module must implement.
Nats.Internal.Ports.Command datatype
A command for the js side
Nats.Internal.Ports.Event datatype
An event from the js side
Command datatype -> Platform.Cmd.Cmd msg
the port signature for sending commands to the js side
(Event datatype -> msg) -> Platform.Sub.Sub msg
the port signature for receiving events from the js side