Defines the API for the ports that are required to interface with JS.
This is the API that the ports module must implement.
A command for the js side
An event from the js side
the port signature for sending commands to the js side
the port signature for receiving events from the js side
This is the API that the ports module must implement.