This commit is contained in:
2014-08-13 11:50:01 +04:00
parent 0e8ddca38c
commit a3cc8fc937
2 changed files with 6 additions and 3 deletions

View File

@@ -37,8 +37,10 @@ class NekoWebConnection extends NekoConnection {
}
} else {
var data = parseData(bytes);
var packet = WebSocketTools.string2packet(data, builder);
receive(packet);
if (data != null) {
var packet = WebSocketTools.string2packet(data, builder);
receive(packet);
}
}
}
@@ -186,6 +188,7 @@ class NekoWebConnection extends NekoConnection {
if (opcode == 136) {
//socket.close();
opened = false;
return null;
}