Skip to content

Hookbox breaks when using a websocket enabled browser on a secure connection (https) #68

@mallio

Description

@mallio

Hookbox does not use a valid websocket url when on a secure connection. The issue is on line 16 of hookbox.js.

The protocol for secure websockets is wss://, so that code could be changed to be:

url.replace('http://', 'ws://').replace('https://', 'wss://')

or
url.replace(/http(s)?:///, 'ws$1://')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions