Skip to content

Can't create a stable connection #24

@Bristol-SuShuo

Description

@Bristol-SuShuo

Hi,

Thanks for your work that helps a lot. Actually I am trying to develop a client to communicate with the Octoprint server. I want to receive the message from the server when I send a Gcode command by using websocket.

Currently, I an using Class WebSocketEventHandler. As shown in Octoprint server's terminal, there is a new connection from client. However, it closes immediately so that I can't send any message further.

2022-09-29 10:09:17,844 - octoprint.server.util.sockjs - INFO - New connection from client: ::1 2022-09-29 10:09:17,848 - octoprint.server.util.sockjs - INFO - Client connection closed: ::1

Have you tested it successfully before? I guess that maybe I need to authorize firstly by using the API key. But how can I realize it?
I don't find a suitable tutor.

Best,
David

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