mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
net.websocket: Make data masking configurable
This commit is contained in:
parent
b33b263b34
commit
0504583316
2 changed files with 3 additions and 3 deletions
|
@ -134,7 +134,7 @@ function websocket_methods:close(code, reason)
|
|||
log("debug", "closing WebSocket with code %i: %s" , code , tostring(reason));
|
||||
self.readyState = 2;
|
||||
local handler = self.handler;
|
||||
handler:write(frames.build_close(code, reason));
|
||||
handler:write(frames.build_close(code, reason, true));
|
||||
-- Do not close socket straight away, wait for acknowledgement from server.
|
||||
self.close_timer = timer.add_task(close_timeout, close_timeout_cb, self);
|
||||
elseif self.readyState == 2 then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue