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 can we pass auth params to authenticate the client? #21

Open
Areej-Fatima opened this issue Sep 29, 2022 · 0 comments
Open

How can we pass auth params to authenticate the client? #21

Areej-Fatima opened this issue Sep 29, 2022 · 0 comments

Comments

@Areej-Fatima
Copy link

Areej-Fatima commented Sep 29, 2022

I'll have to convert my node js socket client connection code that is trying to establish connection with server and also authenticating the user passing auth params there. My node js client code looks like this. I want the same functionality in golang.

socket = io('localhost:3000', {
          path: 'https://localhost:3000/socket.io',
          auth: {
            username: 'username',
            token: "abcd",
          },
     });

We can pass query params here in this go-socket.io-client implementation, but how can we pass auth to authenticate the user and achieve the same equivalent functionality as above using this library in go? If it isn't there, kindly add this functionality.

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