How to use client as a proxy?
xuxiangyang opened this issue · 0 comments
xuxiangyang commented
Hi, I want to use nginx as as wescoket proxy, so I could hold the connection by nginx while my backend server restarting.
I wrote listen to a new port 8080, and newed a resty.websocket.client
to connection my backend server, which listens to port 80.
our Api requests use http Authentication header to verify user, how could I proxy the whole header using the resty.websocket.client
while connecting? how could I save the websocket requests while backend restarting, then reconnect to backend?
I am a newer for lua-resty-websocket. could you give me some help or docs?
Thx