Protocol::WebSocket::URL
WebSocket URL
- Provided by: libprotocol-websocket-perl (Version: 0.26-3)
- Report a bug
WebSocket URL
# Construct
my $url = Protocol::WebSocket::URL->new;
$url->host('example.com');
$url->port('3000');
$url->secure(1);
$url->to_string; # wss://example.com:3000
# Parse
my $url = Protocol::WebSocket::URL->new->parse('wss://example.com:3000');
$url->host; # example.com
$url->port; # 3000
$url->secure; # 1
Construct or parse a WebSocket URL.
Create a new Protocol::WebSocket::URL instance.
Parse a WebSocket URL.
Construct a WebSocket URL.