Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit fdb2d34

Browse files
committed
Temporary fix : NULL,LF is not a guranteed standard, the LF is optional, so lets deal with it.
1 parent c02f406 commit fdb2d34

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/stomp.js

+5
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ function _setupListeners(stomp) {
141141
buffer += chunk;
142142
var frames = buffer.split('\0\n');
143143

144+
// Temporary fix : NULL,LF is not a guranteed standard, the LF is optional, so lets deal with it. (Rauls)
145+
if (frames.length == 1) {
146+
frames = buffer.split('\0');
147+
}
148+
144149
if (frames.length == 1) return;
145150
buffer = frames.pop();
146151

0 commit comments

Comments
 (0)