closeFromServer method

Future<void> closeFromServer([
  1. CloseStatus status = CloseStatus.normal
])

Closes the connection as the server would, with status (1000, normal, by default); the client sees it as a clean close.

Implementation

Future<void> closeFromServer([CloseStatus status = CloseStatus.normal]) =>
    _end(status);