SlackAPI icon indicating copy to clipboard operation
SlackAPI copied to clipboard

Cannot get the example for RTM to working.

Open yrshaikh opened this issue 5 years ago • 5 comments

            SlackSocketClient client22 = new SlackSocketClient(_authToken);
            client22.Connect((connected) => {
                // This is called once the client has emitted the RTM start command
                clientReady.Set();
            }, () => {
                // This is called once the RTM client has connected to the end point
            });
            client22.OnMessageReceived += (message) =>
            {
                // Handle each message as you receive them
            };
            clientReady.Wait();```

Trying this, but control doesnt flow inside any of the callback and the program keeps waiting. Also where do I provide channel id? 

I am trying use this sample code to listen to messages pushed to a channel.

yrshaikh avatar Mar 26 '19 11:03 yrshaikh

Saw similar issue #93

yrshaikh avatar Mar 26 '19 12:03 yrshaikh

https://api.slack.com/methods/rtm.connect/test

Test it, you might have the incorrect scopes

danielriddell21 avatar Apr 23 '19 14:04 danielriddell21

I have the same issue. I use the library with five slack workspaces, four of them stopped working few days ago. Nothing has changed in the workspaces.

afish avatar May 04 '19 14:05 afish

@afish https://github.com/Inumedia/SlackAPI/issues/177

Inumedia avatar May 04 '19 15:05 Inumedia

@Inumedia Thanks, I confirm it solved my issue!

afish avatar May 04 '19 15:05 afish