As part of Spark integration into Shangridocs we need to implement JS which basically creates a web socket connection, polls this socket for incoming data then acts upon the event streaming the data back into the CTakesPanel.js
I think it can be done something like the following
socket= new WebSocket('ws://www.example.com:8000/somesocket');
...
socket.onmessage= function(s) {
streamingFunction();
};
As part of Spark integration into Shangridocs we need to implement JS which basically creates a web socket connection, polls this socket for incoming data then acts upon the event streaming the data back into the CTakesPanel.js I think it can be done something like the following
I'm going to try working on this tomorrow as I have the spark integration running on local[*] Spark configuration. When i attempt to move it to a cluster environment I am getting some nasty problems which are deep down in cTAKES and now UIMA so there is more work to be done to get it running in the full cluster environment. cf. https://issues.apache.org/jira/browse/CTAKES-385 cf. https://issues.apache.org/jira/browse/CTAKES-388 cf. https://github.com/darth-pr/celgene/issues/95