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

remove all blank lines at the beginning of a frame #11

Closed
wants to merge 1 commit into from
Closed

Conversation

dwsoto
Copy link

@dwsoto dwsoto commented Nov 12, 2013

I'm using StompKit on iOS 6.1 with ActiveMQ 5.9.0 on the server side. When a message is sent from the broker after some seconds of inactivity, there are several blank lines before the line which contains the frame code.
Because the StompKit code only removes one blank line, StompKit wasn't able to extract the frame code from the data. This commit fixed that for me.

@jmesnil
Copy link
Contributor

jmesnil commented Nov 13, 2013

does it work if you trim the msg string instead?

[msg stringByTrimmingCharactersInSet:whitespaceAndNewlineCharacterSet];

@hcnguyen5
Copy link

Add trimming the string fixed the ActiveMQ issue for me.

@jmesnil
Copy link
Contributor

jmesnil commented Feb 20, 2014

fixed by #14 PR

@jmesnil jmesnil closed this Feb 20, 2014
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

Successfully merging this pull request may close these issues.

None yet

3 participants