diff options
author | Michael Martin <flrgh@protonmail.com> | 2021-12-21 18:08:42 -0800 |
---|---|---|
committer | Michael Martin <flrgh@protonmail.com> | 2021-12-21 18:08:42 -0800 |
commit | 76c2905a77cf4b1e02e3ca82ee070768d9f7e5e5 (patch) | |
tree | 827c87f651bac8d6073f02e59480d0ff37c1b6e2 /meta/3rd/OpenResty/library/resty.websocket.client.lua | |
parent | c43a93345bc4e8bda4adf5f686f17d4598094d78 (diff) | |
download | lua-language-server-76c2905a77cf4b1e02e3ca82ee070768d9f7e5e5.zip |
chore: update resty.websocket annotations
Diffstat (limited to 'meta/3rd/OpenResty/library/resty.websocket.client.lua')
-rw-r--r-- | meta/3rd/OpenResty/library/resty.websocket.client.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/meta/3rd/OpenResty/library/resty.websocket.client.lua b/meta/3rd/OpenResty/library/resty.websocket.client.lua index c722faf9..12615483 100644 --- a/meta/3rd/OpenResty/library/resty.websocket.client.lua +++ b/meta/3rd/OpenResty/library/resty.websocket.client.lua @@ -1,7 +1,7 @@ ---@meta ---@class resty.websocket.client : resty.websocket -resty_websocket_client = { +local client = { _VERSION = "0.09" } @@ -14,7 +14,7 @@ resty_websocket_client = { ---@param opts? resty.websocket.new.opts ---@return resty.websocket.client? client ---@return string? error -function resty_websocket_client:new(opts) end +function client:new(opts) end ---Connects to the remote WebSocket service port and performs the websocket ---handshake process on the client side. @@ -27,7 +27,7 @@ function resty_websocket_client:new(opts) end ---@param opts? resty.websocket.client.connect.opts ---@return boolean ok ---@return string? error -function resty_websocket_client:connect(uri, opts) end +function client:connect(uri, opts) end --- Puts the current WebSocket connection immediately into the ngx_lua cosocket connection pool. --- @@ -41,7 +41,7 @@ function resty_websocket_client:connect(uri, opts) end ---@param pool_size integer ---@return boolean ok ---@return string? error -function resty_websocket_client:set_keepalive(max_idle_timeout, pool_size) end +function client:set_keepalive(max_idle_timeout, pool_size) end ---Closes the current WebSocket connection. --- @@ -49,7 +49,7 @@ function resty_websocket_client:set_keepalive(max_idle_timeout, pool_size) end --- ---@return boolean ok ---@return string? error -function resty_websocket_client:close() end +function client:close() end ---@class resty.websocket.client.connect.opts : table --- @@ -60,4 +60,4 @@ function resty_websocket_client:close() end ---@field headers string[] custom headers to be sent in the handshake request. The table is expected to contain strings in the format {"a-header: a header value", "another-header: another header value"}. -return resty_websocket_client
\ No newline at end of file +return client
\ No newline at end of file |