Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Conversation

larsderidder
Copy link

I need to pass in query parameters to the websockets request. These are then intercepted by an nginx reverse proxy. Perhaps a bit of an edge case, but it does add flexibility (and in my case allows for authenticating the stream).

For this I use the same search params as used in the RTSP URI. If this does any harm I think I could introduce a separate params fields.

@steabert
Copy link
Member

Thanks for your interest!

Yes, I think it would be best if these are optional, separate search params.

const wsUri = (
protocol: Protocol.WS | Protocol.WSS,
host: string,
searchParams: string,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
searchParams: string,
searchParams?: string,

Comment on lines +248 to +250
searchParams(FORMAT_API[format], {
...parameters,
}),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would also need to be optional somehow, as I guess this is specific for your setup?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants