Channel.fromEndpoint constructor

Channel.fromEndpoint(
  1. Endpoint endpoint
)

Wrap an existing endpoint (bidirectional use; starts its read loop).

Implementation

Channel.fromEndpoint(this.endpoint) {
  endpoint.start();
}