Connect to TWS gateway on client end

Hi,
Am doing a POC to connect to the TWS gatway for auto trading purpose. I found this https://github.com/pilwon/node-ib which will work on server side instance of TWS. What i am looking for is trhough web app can i connect to the local socket(TWS socket) at client end.
Does WebRTC with socket.io sufice the needs and if i need to reverse engineer the above mentioned node-ib to port some IB related event which is the best tool to do.
FYI: Am completely new to nodjs and still now i haven’t written any JS file with custom plugins a rookie java developer.

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.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.