-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
for the official API you can use
slack = new Slack(token, autoReconnect, autoMark)
I'm wondering if you've gone through the steps to get a websocket going after the API
SlackAPI.rtm.start(token, callback)
The url property contains a WebSocket Message Server URL. Connecting to this URL will initiate a Real Time Messaging session. These URLs are only valid for 30 seconds, so connect quickly!
about to start looking into that but asking here first!
Meteor.startup ->
if Meteor.isServer
slack = SlackAPI.rtm.start(token, startCb)
startCb = (err, res) ->
console.log("slack.start", err, res)
if err
console.error("cant start slack.rtm")
else
slack = res
# do something with it
Metadata
Metadata
Assignees
Labels
No labels