pusher / pusher-websocket-unity

Pusher Channels Unity Client Library
MIT License
27 stars 20 forks source link

how to access private chennels with token from unity #2

Closed virtouso closed 5 years ago

virtouso commented 5 years ago

hi. im looking for a way to join to private channels to prevent unauthenticated users to join private channels. as i searched there is channel subscription with token option but dont know its implemented in the api or if implemented how can i use it.

damdo commented 5 years ago

Hey @virtouso, In order to have private channels you need to setup two components correctly: 1) the Server Side: https://pusher.com/docs/channels/server_api/authenticating-users

2) the Client Side (.NET/Unity): https://github.com/pusher/pusher-websocket-dotnet#event-based-1