fail method

void fail(
  1. Object error
)

Simulates a network failure: the client sees error and the connection closes.

Implementation

void fail(Object error) => (_side as InMemoryConnection).fail(error);