sendTo method
Send a message to a specific client.
Implementation
void sendTo(String clientId, RemoteMessage message) {
final socket = _clients[clientId];
if (socket != null) {
socket.add(jsonEncode(message.toJson()));
}
}
Send a message to a specific client.
void sendTo(String clientId, RemoteMessage message) {
final socket = _clients[clientId];
if (socket != null) {
socket.add(jsonEncode(message.toJson()));
}
}