lua-resty-websocket
lua-resty-websocket copied to clipboard
WebSocket support for the ngx_lua module (and OpenResty)
When I GET the address that call lua script with client example I receive error: "failed to receive the frame: bad RSV1, RSV2, or RSV3 bits" nginx.conf: server{ listen 80;...
:wave: This adds custom host header support to `client:connect()`. The value of `opts.host` is used for SNI as well (unless the caller _also_ provides `opts.server_name`). I've also added documentation for...
Maybe we can reuse an HTTP connection to establish a WebSocket client? A direct implementation may be to allow users to pass sock(`ngx.socket.tcp`) as an argument: ```lua function _M.new(self, opts,...
Check the request scheme and `ssl_support` and exit early (before handling options) if needed.
my lua code is just like this: local file = io.popen("tail -f /var/log/ping.log") for line in file:lines() do local bytes, err = wb:send_text(line) ngx.log(ngx.INFO, "LINE SENDED:",line,":",bytes,":",err) if not bytes then...
Hello, Im not sure if that's possible but before I look at openresty / LUA scripting, within my microservice (nodejs), I had a websocket client that was connecting to a...
when i try to connect to the ws server(ws://ip:8081/ws), it raise error ```shell 2021/03/25 00:20:34 [info] 16392#16392: *1 client 113.92.35.59 closed keepalive connection ``` ### my nginx.conf content ```shell worker_processes...
I am new to using websockets with openresty so I apologize if it is documented somewhere but I can't find it and have been trying for several hours unsuccessfully. is...
hello I use lua-resty-websocket as server. when we do performance test, we found lj_str_new use too much cpu by 'perf top'. so we use stap to collect the cpu useage,...
The Autobahn WebSocket testsuite has become the de-facto standard for testing WebSocket libraries for correctness: https://github.com/crossbario/autobahn-testsuite Feature Request: Add a script that runs the Autobahn tests against the Lua client...