Node.js sample on git hub not working out of the box

I’ve been trying to get the example on the git hub node-api page working. I’ve got as far as being able to authenticate but then the polling doesn’t start correctly. It appears that the cookies are being lost in the header. The output I get is:

We got an error number: 2 Text: Access error

I’ve forked the code and the changes I’ve made are at:

https://github.com/JasonCozens/node-api.

Hi Jason,

Unfortunately the node API requires v6 PABX firmware, as before that it relied on variables in the global scope. (Which I believe most of your changes relate to this?)

You are more than welcome to submit a pull request however!

Jamie