slackapi / steno

:vhs: Slack app testing companion - Record and Replay your HTTP requests, both incoming and outgoing
https://slackapi.github.io/steno
MIT License
185 stars 17 forks source link

Does Steno support websocket connections? #63

Open cmac4603 opened 6 years ago

cmac4603 commented 6 years ago

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 [ ])

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


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:

1. 2. 3.

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

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

seawatts commented 5 years ago

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

cmac4603 commented 5 years ago

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

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.