Skip to content
This repository was archived by the owner on Apr 30, 2021. It is now read-only.
This repository was archived by the owner on Apr 30, 2021. It is now read-only.

Problem when trying a http url #55

@mightyx

Description

@mightyx

Hey I have a dump question maybe. I 'm trying with a https://ws.somedomain.de url on Port 443

`use Protocol::WebSocket::Client;

my $client = Protocol::WebSocket::Client->new(url => 'ws://ws.somedomain.de:443');

Sends a correct handshake header

$client->connect;

Register on connect handler

$client->on(
connect => sub {
$client->write('hi there');
}
);

Parses incoming data and on every frame calls on_read

$client->read($reply);
print "$reply\n";

Sends correct close header

$client->disconnect;`

And I get the following error:
Can't use an undefined value as a subroutine reference at /Library/Perl/5.18/Protocol/WebSocket/Client.pm line 103.

Is it possible to access an websocket through https? I also tried ws://somedomain.de:443 / ws://https://ws.somedomain.de:443`

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