close method

Future<void> close(
  1. String connectionId
)

Close a connection to the socket, referenced by its connectionId.

Implementation

Future<void> close(String connectionId) async {
  var req = $wp.WebsocketCloseConnectionRequest(
      socketName: name, connectionId: connectionId);
  await _websocketClient.closeConnection(req);
}