comparison net/websocket.lua @ 12974:ba409c67353b

net: Prefix module imports with prosody namespace
author Kim Alvefur <zash@zash.se>
date Fri, 17 Mar 2023 16:23:12 +0100
parents 926d6086a95a
children 8d726f5d044a
comparison
equal deleted inserted replaced
12973:cc215923297f 12974:ba409c67353b
6 -- COPYING file in the source package for more information. 6 -- COPYING file in the source package for more information.
7 -- 7 --
8 8
9 local t_concat = table.concat; 9 local t_concat = table.concat;
10 10
11 local http = require "net.http"; 11 local http = require "prosody.net.http";
12 local frames = require "net.websocket.frames"; 12 local frames = require "prosody.net.websocket.frames";
13 local base64 = require "util.encodings".base64; 13 local base64 = require "prosody.util.encodings".base64;
14 local sha1 = require "util.hashes".sha1; 14 local sha1 = require "prosody.util.hashes".sha1;
15 local random_bytes = require "util.random".bytes; 15 local random_bytes = require "prosody.util.random".bytes;
16 local timer = require "util.timer"; 16 local timer = require "prosody.util.timer";
17 local log = require "util.logger".init "websocket"; 17 local log = require "prosody.util.logger".init "websocket";
18 18
19 local close_timeout = 3; -- Seconds to wait after sending close frame until closing connection. 19 local close_timeout = 3; -- Seconds to wait after sending close frame until closing connection.
20 20
21 local websockets = {}; 21 local websockets = {};
22 22