disconnect method

void disconnect({
  1. String? deviceId,
})

Ends the gateway connections of deviceId (all when null) without a close code, as a lost network does.

Implementation

void disconnect({String? deviceId}) => gateway.disconnect(deviceId: deviceId);