sendToWebSocketServer method
Method sendToWebSocketServer
Receives an input
, verifies if _connector
is different from
null, in this case, will add into the _connector
the input
Implementation
@visibleForTesting
void sendToWebSocketServer(String input) {
if (_connector != null) {
_connector!.add!(utf8.encode(input));
}
}