SlackAPI
SlackAPI copied to clipboard
Cannot get the example for RTM to working.
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.
Saw similar issue #93
https://api.slack.com/methods/rtm.connect/test
Test it, you might have the incorrect scopes
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 https://github.com/Inumedia/SlackAPI/issues/177
@Inumedia Thanks, I confirm it solved my issue!