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


Manual Reference Pages  -  POCKETIO::SOCKET (3)

.ds Aq ’

NAME

PocketIO::Socket - Socket class

CONTENTS

DESCRIPTION

Instance of PocketIO::Socket is actually the object that you get in a handler.



    builder {
        mount /socket.io => PocketIO->new(
            handler => sub {
                my $socket = shift;

                # $socket is PocketIO::Socket instance
            }
        );

        ...
    };



METHODS

CWnew

Create new instance.

CWclose

Close connection.

CWemit

Emit event.

CWget

Get attribute.

CWset

Set atribute.

CWid

Get session id.

CWsession_id

Same as id.

CWon

Register event.

CWsend

Send message.

CWsockets

Get sockets object.

CWbroadcast

Get broadcasting object.

CWjoin

Join the specified room.

CWleave

Leave the specified room.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 POCKETIO::SOCKET (3) 2016-04-03

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