Skip to content

[[Question]] Have You Had Any Trouble Reading from the Websocket? #5

Description

@4tuw2tuv0

Hey, hope you don't mind if I ask for some help.

Have you had any trouble reading from the Slack websocket? I've tried the same websocket library you use here but, every time I try to read from it after making a connection, it reads the first { type: "hello" } but any subsequent reads get stuck and just hang until I interrupt them.

I was originally working off of some Python code and I noticed that, immediately after connecting to the websocket, they run websocket.sock.setblocking(0) but I couldn't seem to find any documentation for the websocket Python library to explain what that's doing.

Trying to read from the websocket in Python without that setblocking() method has the same affect (the read getting stuck until I interrupt it) but I don't quite know what it does and couldn't find anything for the Racket websocket documentation.

I also noticed you didn't have any intermediate step in your code between connecting and reading so I was wondering if you'd experienced the same behavior, any.

Thanks a ton any for any help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions