mirror of
https://github.com/lxsang/antd-web-apps
synced 2025-07-23 00:59:52 +02:00
improve antos system API
This commit is contained in:
@ -156,7 +156,9 @@ function SystemController:apigateway(...)
|
||||
if use_ws then
|
||||
if std.ws.enable() then
|
||||
-- read header
|
||||
local header = std.ws.header()
|
||||
local header = nil
|
||||
-- wait until we receive request
|
||||
while(not header) do header = std.ws.header() end
|
||||
if header then
|
||||
if header.mask == 0 then
|
||||
print("Data is not masked")
|
||||
|
Reference in New Issue
Block a user