BrandonPotter / SimpleTCP

Straightforward .NET library to handle the repetitive tasks of spinning up and working with TCP sockets (client and server).
Apache License 2.0
363 stars 108 forks source link

Can't deserialize json because of delimiter #32

Open troncomputers opened 6 years ago

troncomputers commented 6 years ago

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

harleyknd1 commented 6 years ago

just remove it and use DataRecieved instead

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

Krutonium commented 6 years ago

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

falko100 commented 5 years ago

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 commented 5 years ago

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.

hepra commented 3 years ago

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