-
for example the JS client library has the auth option const socket = io("ws://example.com/my-namespace", {
auth: {
token: "123"
},
}); |
Beta Was this translation helpful? Give feedback.
Answered by
kerolloz
Dec 18, 2021
Replies: 1 comment
-
Yes, socket = IO.io('https://api.$domain/token/',
OptionBuilder()
.setTransports(['websocket'])
.setAuth({'token': token})
.build()
); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
kerolloz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes,
.setAuth( )
#177