Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use client as a proxy? #13

Open
xuxiangyang opened this issue Apr 24, 2016 · 0 comments
Open

How to use client as a proxy? #13

xuxiangyang opened this issue Apr 24, 2016 · 0 comments

Comments

@xuxiangyang
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant