Skip to content

Instantly share code, notes, and snippets.

@nowelium
Created February 8, 2012 10:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nowelium/1768174 to your computer and use it in GitHub Desktop.
Save nowelium/1768174 to your computer and use it in GitHub Desktop.
ti-websocket-client-diff
#
# なぜか、大きな data を送信しようとすると parse できなくなることがある(逆にそこそこ大きいと成功したりとか)
# ので、length < BUFFER_SIZE の部分はコメントアウトしてみた(hybiの仕様とか見てない)
#
--- ti-websocket-client.org.js 2012-02-08 19:47:03.000000000 +0900
+++ ti-websocket-client.own.js 2012-02-08 19:50:54.000000000 +0900
@@ -872,6 +872,7 @@
type: Ti.Codec.TYPE_BYTE
});
}
+ /*
else if(length < BUFFER_SIZE) { // # write 2 byte length
Ti.Codec.encodeNumber({
source: (126 | 0x80),
@@ -888,6 +889,7 @@
});
outIndex += 2;
}
+ */
else { // # write 8 byte length
Ti.Codec.encodeNumber({
source: (127 | 0x80),
@lavinachitara
Copy link

100 times Thanks its worked for me :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment