drashland / wocket

A WebSocket library for Deno
MIT License
104 stars 4 forks source link

Remove `openChannel`? #78

Closed ebebbington closed 3 years ago

ebebbington commented 4 years ago

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

Example Pseudo Code (for implementation)

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