Subscribe to Events using Javascript / node.js

I am trying to Subscribe to user defined Events using node.js

Right now i am polling for new Events using “StartEventLineSession” and “GetSessionEventLines” every 1 second. But i need to react to Events in realtime. As far as i understand i have to connect to the Event Server Port +2 unsing a tcp connection.

Thats by default Port 22333 (22331+2).

Now as far as i understand, that is not a webservice. So how can i subscribe to new events using Protocol integration? (No C#)

Hope someone can help me out.

Unfortunately, it is not possible to subscribe to events using plain protocols. Instead, we would suggest you make a small plugin for Event Server that pushes out the events you need (code in C#).