drashland/wocket

Remove `openChannel`?

ebebbington opened this issue · 0 comments

Summary

What: Remove openChannel, then on would 'open' it itself.

Why: I feel openChannel is unnecessary, channels are always opened right before it's listener method - i feel using on should create thee listener itself

Thoughts?

Acceptance Criteria

  • Determine whether to remove onChannel, and open channels from within the on method
    • Result:

Example Pseudo Code (for implementation)

public on (name) {
  this.listeners.set(name, ...)
  ...
}