Skip to content

io.set is not a function #1

@qubolino

Description

@qubolino

i am following the tutorial https://experimentalavionics.com/configuring-node-js-for-efis/ to get GlassPanel running

i did install the following node packages

sudo npm install sqlite3@4.2.0
sudo npm install socket.io@4.4.1

when launching the program, pi@ems:~/labs/GlassPanel $ node webserver.js i get an error:

/home/pi/labs/GlassPanel/webserver.js:7
io.set('heartbeat timeout', 4000);
   ^

TypeError: io.set is not a function
    at Object.<anonymous> (/home/pi/labs/GlassPanel/webserver.js:7:4)

am i using the right socket.io version? did i setup my path properly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions