-
I want to be able to programmatically disconnect user if the client.id and client.token does seems fishy (PeerServer). How would I go about doing that inside the connection handler -
|
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I would like to connect with a signature and let the server validate it against the id. I cannot find a way to pass this signature in the connection options so the server would be able to find it and tell if something is fishy.. EDIT. I didn't notice I could simply pass it in the 'token' property of the PeerJSOption. |
Beta Was this translation helpful? Give feedback.
-
you can pass it as query string (URL parameters) |
Beta Was this translation helpful? Give feedback.
client.getSocket().close()