sendCloseToRelay method
Implementation
void sendCloseToRelay(String url, String id) {
if (isWebSocketOpen(url)) {
try {
Relay? relay = getRelay(url);
if (relay != null) {
// relay.stats.activeRequests--;
}
send(url, jsonEncode(["CLOSE", id]));
} catch (e) {
print(e);
}
}
}