summaryrefslogtreecommitdiff
path: root/meta/3rd/OpenResty/library/resty/websocket/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'meta/3rd/OpenResty/library/resty/websocket/server.lua')
-rw-r--r--meta/3rd/OpenResty/library/resty/websocket/server.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/3rd/OpenResty/library/resty/websocket/server.lua b/meta/3rd/OpenResty/library/resty/websocket/server.lua
new file mode 100644
index 00000000..c8f502a2
--- /dev/null
+++ b/meta/3rd/OpenResty/library/resty/websocket/server.lua
@@ -0,0 +1,16 @@
+---@meta
+
+---@class resty.websocket.server : resty.websocket
+local server = {
+ _VERSION = "0.09"
+}
+
+---Performs the websocket handshake process on the server side and returns a WebSocket server object.
+---
+---In case of error, it returns nil and a string describing the error.
+---@param opts? resty.websocket.new.opts
+---@return resty.websocket.server? server
+---@return string? error
+function server:new(opts) end
+
+return server \ No newline at end of file