Exemple #1
0
        private void OnPubSubServiceConnected(object sender, System.EventArgs e)
        {
            Debug.Log("PubSubServiceConnected!");

            // On connect listen to Bits evadsent
            // Please note that listening to the whisper events requires the chat_login scope in the OAuth token.
            _pubSub.ListenToWhispers(Secrets.CHANNEL_ID_FROM_OAUTH_TOKEN);

            // SendTopics accepts an oauth optionally, which is necessary for some topics, such as bit events.
            _pubSub.SendTopics(Secrets.OAUTH_TOKEN);
        }