fix(long-polling): API changes require ignoring \ns!

This commit is contained in:
Ben Gotow 2015-05-12 15:33:08 -07:00
parent 36be4cd497
commit 32db92e52a

View file

@ -120,6 +120,8 @@ class InboxLongConnection
processBufferThrottled = _.throttle(@onProcessBuffer, 400, {leading: false})
res.on 'close', => @retry()
res.on 'data', (chunk) =>
# Ignore characters sent as pings
return if chunk is '\n'
@_buffer += chunk
processBufferThrottled()