Closed aoberoi closed 5 years ago
This would be very nice to fix! +1
Thanks for reporting this! I'm closing this issue as we've decided to address this enhancement in the v2 redesign of the client. Please see https://github.com/slackapi/python-slackclient/pull/384 and https://github.com/slackapi/python-slackclient/pull/394 for more details.
Description
This is a report coming from an internal support system and an investigation done with platform engineering.
a potential solution we identified is to iterate over the internal websocket object (it is defined as an iterable) to collect as many frames as are available before processing each message and returning the list. we're not sure if this is as simple as
list(websocket)
since that calls into a never ending loop (while True:...
).another consideration while fixing this issue is that we should reach out to the author of one of the most popular tutorials for using this package, because there's a logical issue with the sample code that author has published. (https://www.fullstackpython.com/blog/build-first-slack-bot-python.html)
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:
slackclient version: 1.0.9
python version: all
OS version(s): all
Steps to reproduce:
client.rtm_read()
Expected result:
many messages in the returned list
Actual result:
just one message in the returned list