A little strange that the package doesn’t explain how to connect on the client-side,
I think you’ll need to use connect using the WebSocket API in JS
Start up the node-ib
server locally and try to connect to it with code like that above ^
You’ll probably need to handle re-connection in your client-side app, something like https://github.com/joewalnes/reconnecting-websocket might help with that.