You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@jmesnil
Thanks for the awesome library. Had a question on data from the heartbeat. It seems [self.socket writeData:[GCDAsyncSocket LFData] withTimeout:kDefaultTimeout tag:123]; in sendPing: is causing new lines to get prepended to the next message data that is received for me.
This causes problems parsing the data into the contents array. For now I added msg = [msg stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]]; in STOMPFrameFromData: to trim out new lines in the beginning.
Is this an issue you have seen before or is there a better way to avoid this?
Thanks.
The text was updated successfully, but these errors were encountered:
@jmesnil
Thanks for the awesome library. Had a question on data from the heartbeat. It seems
[self.socket writeData:[GCDAsyncSocket LFData] withTimeout:kDefaultTimeout tag:123];
insendPing:
is causing new lines to get prepended to the next message data that is received for me.This causes problems parsing the data into the contents array. For now I added
msg = [msg stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
inSTOMPFrameFromData:
to trim out new lines in the beginning.Is this an issue you have seen before or is there a better way to avoid this?
Thanks.
The text was updated successfully, but these errors were encountered: