SimpleTCP
SimpleTCP copied to clipboard
Can't deserialize json because of delimiter
How to disable delimiter? I'm getting json deserialize exception because there is delimiter character at the end of string.
just remove it and use DataRecieved instead
server.DataReceived += (sender, msg) => { RecieveMessages.recvMessage(msg.MessageString); };
I just made a function that removes the last character of any string.
Super late response, but for others having the same issues: Put your listener on DelimiterDataReceived instead of DataReceived and the Delimiter will be removed.
just remove it and use DataRecieved instead
server.DataReceived += (sender, msg) => { RecieveMessages.recvMessage(msg.MessageString); };
I really believe this to be a quickfix, not a solution.
just remove it and use DataRecieved instead
server.DataReceived += (sender, msg) => { RecieveMessages.recvMessage(msg.MessageString); };I really believe this to be a quickfix, not a solution.
this worked