close method

Future<void> close({
  1. int? code,
  2. String? reason,
})

Drops the connection from the server side, with a WebSocket close code and reason when given.

Implementation

Future<void> close({int? code, String? reason}) => _end.close(code, reason);