send method
Sends message to the client as the server would.
Implementation
void send(DwServerMessage message) {
if (!isOpen) return;
try {
_end.send(jsonEncode(message.toJson()));
_server.sent.add(message);
} on StateError {
// Closed and not yet noticed: the frame is lost, as on a socket.
}
}