You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the websocket client (from sample code in the README), I get this error below:
" ./openresty/lualib/resty/websocket/protocol.lua:21: attempt to index global 'ngx' (a nil value) "
I did set the package path as required. package.path = package.path .. ";./openresty/?.lua
Is there a working sample for websocket client?
The text was updated successfully, but these errors were encountered:
@gitdhar Please provide a minimal and self-contained example that can reproduce this. The ngx global variable should always be there in the context of OpenResty (or ngx_lua). There must be something very wrong in your OpenResty setup.
Using the websocket client (from sample code in the README), I get this error below:
" ./openresty/lualib/resty/websocket/protocol.lua:21: attempt to index global 'ngx' (a nil value) "
I did set the package path as required.
package.path = package.path .. ";./openresty/?.lua
Is there a working sample for websocket client?
The text was updated successfully, but these errors were encountered: