SimpleTCP icon indicating copy to clipboard operation
SimpleTCP copied to clipboard

Can't deserialize json because of delimiter

Open troncomputers opened this issue 7 years ago • 5 comments

How to disable delimiter? I'm getting json deserialize exception because there is delimiter character at the end of string.

troncomputers avatar Nov 30 '17 10:11 troncomputers

just remove it and use DataRecieved instead

server.DataReceived += (sender, msg) => { RecieveMessages.recvMessage(msg.MessageString); };

harleyknd1 avatar Mar 05 '18 08:03 harleyknd1

I just made a function that removes the last character of any string.

Krutonium avatar Mar 28 '18 03:03 Krutonium

Super late response, but for others having the same issues: Put your listener on DelimiterDataReceived instead of DataReceived and the Delimiter will be removed.

falko100 avatar Jan 09 '19 21:01 falko100

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.

falko100 avatar Jan 09 '19 21:01 falko100

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

hepra avatar Oct 23 '20 01:10 hepra