Skip to content

How to close a secure websocket correctly #893

@wenwenchenbosch

Description

@wenwenchenbosch

I implemented a websocket client using this library. But after I closing the secure connection by the client side, I always get the error from server side:

ERROR: read: stream truncated

which means that the client closed the connection abruptly. The question is, how to close a websocket correctly. I called close() function. But I still got the error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions