steno icon indicating copy to clipboard operation
steno copied to clipboard

Does Steno support websocket connections?

Open cmac4603 opened this issue 6 years ago • 4 comments

Description

Does steno support websockets?

I've searched the documentation, but no info on this. I ask because the python-slackclient RTM library uses websockets, so at the moment all I see are POST requests a chat bot makes via the web API, and not messages retrieved via the RTM websocket.

What type of issue is this? (place an x in one of the [ ])

  • [ ] bug
  • [ ] enhancement (feature request)
  • [x] question
  • [ ] documentation related
  • [ ] testing related
  • [ ] discussion

Requirements (place an x in each of the [ ])

  • [x] I've read and understood the Contributing guidelines and have done my best effort to follow them.
  • [x] I've read and agree to the Code of Conduct.
  • [x] I've searched for any related issues and avoided creating a duplicate issue.

Bug Report

Filling out the following details about bugs will help us solve your issue sooner.

Reproducible in:

steno version: v1.2.0

OS version(s): Mac OS X High Sierra 10.13.4

Steps to reproduce:

Expected result:

Would hope to see messages retrieved by slack bot to reproduce whole flow during tests

Actual result:

What actually happened

Attachments:

Logs, screenshots, screencast, sample project, funny gif, etc.

cmac4603 avatar Jul 08 '18 18:07 cmac4603

I am also receiving in the replay mode:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /api/chat.postMessage</pre>
</body>
</html>

Apologies for the multiple questions trying http://localhost:3000/api/chat.postMessage

cmac4603 avatar Jul 08 '18 19:07 cmac4603

I'm also getting this same error on /api/rtm.connect @cmac4603 have you made any progress?

seawatts avatar Jul 24 '19 20:07 seawatts

I submitted a PR back in the day, but after much chasing for a review I gave up. I really tried though. I believe I recall it working locally? It feels so long ago though.

cmac4603 avatar Jul 25 '19 09:07 cmac4603

This PR used to allow you to use localhost etc. for Steno + python-slackclient. Not fully tested https://github.com/slackapi/python-slackclient/pull/332/files and like I said, I had to give up.

cmac4603 avatar Jul 25 '19 09:07 cmac4603