Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New lines prepended to message data #29

Closed
maxcampolo opened this issue Jun 9, 2015 · 0 comments
Closed

New lines prepended to message data #29

maxcampolo opened this issue Jun 9, 2015 · 0 comments

Comments

@maxcampolo
Copy link

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant