Interface for handling input events and message ports.
Enables transport events
Handles event responses
Gets the message port
Sets the message port
Interface for handling input events and message ports.