Inumedia / SlackAPI

.NET Implementation of the Slack team communication platform API.
MIT License
452 stars 243 forks source link

Cannot get the example for RTM to working. #176

Open yrshaikh opened 5 years ago

yrshaikh commented 5 years ago

            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 commented 5 years ago

Saw similar issue #93

danielriddell21 commented 5 years ago

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

Test it, you might have the incorrect scopes

afish commented 5 years ago

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.

Inumedia commented 5 years ago

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

afish commented 5 years ago

@Inumedia Thanks, I confirm it solved my issue!