Protocol::WebSocket::URL(3pm)

Protocol::WebSocket::URL3pm

Websocket url

Usage

    # 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

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.

  1. 11
  2. 12–13

From libprotocol-websocket-perl 0.26-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.