fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user