Created
February 8, 2012 10:54
-
-
Save nowelium/1768174 to your computer and use it in GitHub Desktop.
ti-websocket-client-diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# なぜか、大きな 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), |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
100 times Thanks its worked for me :-)