Skip to content

How to use client as a proxy? #13

Open
@xuxiangyang

Description

@xuxiangyang

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions