Protocol::WebSocket::URL3pm
Websocket url
Usage
# Constructmy $url = Protocol::WebSocket::URL->new;$url->host('example.com');$url->port('3000');$url->secure(1);$url->to_string; # wss://example.com:3000# Parsemy $url = Protocol::WebSocket::URL->new->parse('wss://example.com:3000');$url->host; # example.com$url->port; # 3000$url->secure; # 1
Overview
Construct or parse a WebSocket URL.
Attributes
"host"
"port"
"resource_name"
"secure"
Methods
"new"
Create a new Protocol::WebSocket::URL instance.
"parse"
Parse a WebSocket URL.
"to_string"
Construct a WebSocket URL.
Releases
3 releases since Debian 11 (Bullseye); the text changed 1 time.