chrismattmann / shangridocs

Document exploration tool
Apache License 2.0
12 stars 6 forks source link

Implement client-side JS for binding to a Socket Connection and Reading Results #15

Open lewismc opened 9 years ago

lewismc commented 9 years ago

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();
};

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