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`
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`