Frontmatter
| id | 668 |
| title | Test if we can use port.addEventListener() after using port.start() |
| state | Closed |
| labels | enhancement |
| assignees | tobiu |
| createdAt | Jun 5, 2020, 7:24 AM |
| updatedAt | Jun 6, 2020, 3:25 AM |
| githubUrl | https://github.com/neomjs/neo/issues/668 |
| author | tobiu |
| commentsCount | 2 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jun 6, 2020, 3:25 AM |


Got the feedback on Reddit that it should work after calling port.start().
This version works without calling start():
This version feels cleaner and more consistent to non shared workers
port.addEventListener('message', me.onMessage.bind(me), false);If the change does work, I need to update the tutorial as well.