mirror of
https://github.com/lxsang/ant-http
synced 2025-07-26 10:39:45 +02:00
update server
This commit is contained in:
@ -84,6 +84,12 @@ void handler(int cl, const char* m, const char* rqp, dictionary rq)
|
||||
h = ws_read_header(cl);
|
||||
if(h)
|
||||
{
|
||||
if(h->mask == 0)
|
||||
{
|
||||
LOG("%s\n","Data is not mask");
|
||||
write(fdm, "exit\n", 5);
|
||||
return;
|
||||
}
|
||||
if(h->opcode == WS_CLOSE)
|
||||
{
|
||||
LOG("%s\n","Websocket: connection closed");
|
||||
|
Reference in New Issue
Block a user