Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re^2: perl client for

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

in reply to Re: perl client for
in thread perl client for

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

Replies are listed 'Best First'.
Re^3: perl client for
by Happy-the-monk (Abbot) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1206589]
[jdporter]: one prog I have has a UI which allows to input a bit mask
[jdporter]: currently it expects the bitmask to be in the form of a hex number, e.g. 0x0101
[jdporter]: but I'd like to let the user specify it as individual bits, i.e. 0b0000000100000001
[jdporter]: there is no bit/binary equivalent of hex, right?

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-02-20 16:25 GMT
Find Nodes?
    Voting Booth?
    When it is dark outside I am happiest to see ...

    Results (272 votes). Check out past polls.