use addEventListener to handle message event and call port.start() to enable the port