|
NAMEPocketIO::Socket - Socket classDESCRIPTIONInstance 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"new"Create new instance."close"Close connection."emit"Emit event."get"Get attribute."set"Set atribute."id"Get session id."session_id"Same as "id"."on"Register event."send"Send message."sockets"Get sockets object."broadcast"Get broadcasting object."join"Join the specified room."leave"Leave the specified room.
Visit the GSP FreeBSD Man Page Interface. |