Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: perl client for Socket.io

by mojo2405 (Acolyte)
on Jan 03, 2018 at 10:12 UTC ( [id://1206589]=note: print w/replies, xml ) Need Help??


in reply to Re: perl client for Socket.io
in thread perl client for Socket.io

Hi , I tried the code above .The problem I get after trying to connect to my node js socket.io server is this : 28 {"code":0,"message":"Transport unknown"} 0 at /usr/local/share/perl5/AnyEvent/PocketIO/Client.pm line 86. Can't call method "transport" on an undefined value at socket-perl.pl line 9.

Replies are listed 'Best First'.
Re^3: perl client for Socket.io
by Happy-the-monk (Canon) on Jan 03, 2018 at 12:01 UTC

    As your $socket object is undefined, it means the connect did not work all right.

    You may debug it by inspecting the port or at least check if PocketIO::Client::IO->connect succeeded (i.e. returned an object).

    Cheers, Sören

    Créateur des bugs mobiles - let loose once, run everywhere.
    (hooked on the Perl Programming language)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1206589]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-24 10:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found