sendMessageEOM method
Sends a message to server. Make sure to have established a connection before calling this method Message will be sent as 'message'+'eom'
- @param message the message to send to server
- @param eom the end of message to send to server
Implementation
void sendMessageEOM(String message,String eom) async{
if(_server!=null &&_connected){
_server!.add(utf8.encode(message+eom));
_printData("Message sent: "+message+eom);
}else{
print("Socket not initialized before sending message! Make sure you have already called the method 'connect()'");
}
}