Skip to content
This repository was archived by the owner on Jun 13, 2023. It is now read-only.
This repository was archived by the owner on Jun 13, 2023. It is now read-only.

websocketDidDisconnect(socket:error:) prints lots logs #128

@ananfang

Description

@ananfang

If the device disconnected from the WebSocket, the delegate will trigger func websocketDidDisconnect(socket:error:), and print lots of logs by:
print("error: \(error)")

It is not ideal for release build, so this pull request adds a property "shouldPrintWebSocketLog" for class Client. By default this value is true, and you can turn the logs off by setting it false.

Here is my pull request about this issue.

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