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

Socket handshake data before proxying the websocket request #1625

Open
Areej-Fatima opened this issue Jan 26, 2023 · 0 comments
Open

Socket handshake data before proxying the websocket request #1625

Areej-Fatima opened this issue Jan 26, 2023 · 0 comments

Comments

@Areej-Fatima
Copy link

Areej-Fatima commented Jan 26, 2023

Hi, Can we get the data sent along handshake as well before proxying websocket request? like on proxyreqws event

proxy.on('proxyReqWs', (proxyReq, req, socket, options, head) => {
    //before the request is actually proxyed to the target server
    //access socket handshake data like sent via low level params like query and auth
});

Although we can get the query params from url, how to get the auth sent along with handshake request? If we haven't added the option of polling in transport, still initially the upgrade request is an http request. So the handshake request will be an an http request. How to get the data then?

@Areej-Fatima Areej-Fatima changed the title Socket handshake data before prooxying the websocker request Socket handshake data before proxying the websocket request Jan 26, 2023
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