GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Protocol::WebSocket::Handshake::Client(3) User Contributed Perl Documentation Protocol::WebSocket::Handshake::Client(3)

Protocol::WebSocket::Handshake::Client - WebSocket Client Handshake

    my $h =
      Protocol::WebSocket::Handshake::Client->new(url => 'ws://example.com');

    # Create request
    $h->to_string;

    # Parse server response
    $h->parse(<<"EOF");
        WebSocket HTTP message
    EOF

    $h->error;   # Check if there were any errors
    $h->is_done; # Returns 1

Construct or parse a client WebSocket handshake. This module is written for convenience, since using request and response directly requires the same code again and again.

    $handshake->url('ws://example.com/demo');

Set or get WebSocket url.

Create a new Protocol::WebSocket::Handshake::Client instance.

    $handshake->parse($buffer);

Parse a WebSocket server response. Returns "undef" and sets "error" attribute on error. Buffer is modified.

Construct a WebSocket client request.

Check whether handshake is done.
2017-12-12 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.