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

Configure web sockets client #54

Open
PatrykKuniczak opened this issue Mar 2, 2023 · 0 comments
Open

Configure web sockets client #54

PatrykKuniczak opened this issue Mar 2, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@PatrykKuniczak
Copy link
Owner

Connect client with server and configure JWT globally like this:

this.socketOptions = {
    transportOptions: {
        polling: {
            extraHeaders: {
                Authorization: 'your token', // 'Bearer h93t4293t49jt34j9rferek...'
            }
        }
    }
};

https://stackoverflow.com/questions/58670553/nestjs-gateway-websocket-how-to-send-jwt-access-token-through-socket-emit

@PatrykKuniczak PatrykKuniczak added the enhancement New feature or request label Mar 2, 2023
@Skolaczk Skolaczk self-assigned this Apr 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants