Adding sendMessage and getWebsocket methods to RTM client by arbasha · Pull Request #31 · allbegray/slack-api · GitHub
Skip to content

Adding sendMessage and getWebsocket methods to RTM client#31

Merged
allbegray merged 1 commit into
allbegray:masterfrom
arbasha:master
May 22, 2017
Merged

Adding sendMessage and getWebsocket methods to RTM client#31
allbegray merged 1 commit into
allbegray:masterfrom
arbasha:master

Conversation

@arbasha

@arbasha arbasha commented Apr 26, 2017

Copy link
Copy Markdown

Hi,

  1. Reason for adding sendMessage method- Today, I don't see a way to reply back slack (bot) using webSocket if you're connected using Slack RTM api, because of this, as a workaround i'm creating a SlackWebApiClient and using postMessage web api to send messages to Slack. So using the new sendMessage method I can avoid going for workaround and stick to RTM api alone.

  2. Reason for adding getWebsocket method: I'm making the webSocket visible outside of SlackRealTimeMessagingClient, just to make use of the webSocket and others method provided by it apart from sendMessage.

Please go through the pull request and let me know if i'm missing something...Cheers!!

@allbegray allbegray merged commit 86f2176 into allbegray:master May 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants