connect iris community version to node js
Hi
I am trying to connect to node js on iris community version . Node js is properly installed .
I am executing the demo hello world from github .
these are the parameters :-
var ip = "localhost"
var port = 51773
var namespace = "USER"
var username = "SuperUser"
var password = "SYS"
when executing >node demo.js i get a connection error .
Error: connection to server denied [ERROR_FAILED_TO_CONNECT]
at main (C:\Users\AF\demo.js:18:35)
at Object.<anonymous> (C:\Users\AF\demo.js:30:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49
Node.js v20.11.0
Thanks
Rafi Farchi
Could you point to the demo, you trying to run?
Is IRIS running properly?
default super Server port = 1972 !
He could find one of the demos, where port 51773 was for a while as a replacement of 1972 when IRIS was very fresh
changed port to 1972 and now it works fine .
Many thanks