Skip to content

Can't open WebSocketEventStream #276

Open

Description

@asxtray

it seems that WebSocketEventStream can only work with insecure http sockets. Please have a look at line 46:
URI adjustedURI = (new URI(uri.getScheme() == "https" ? "wss" : "ws", uri.getSchemeSpecificPart(), uri.getFragment())).resolve("ws/" + token.getToken());
Despite the provided uri schema is HTTPS it fails direct comparison as it's String object reference

Activity

  1. NemanyaM commented on Mar 29, 2021

    @NemanyaM

    @asxtray Actually, seems that there is no HTTPS implementation at all, as I could see, in this part of a project, if I am right by any chance, the ternary condition could be removed. Also, maybe constants could be introduced for better readability and as a good practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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