Steps 1 and 4 are done (just change "SocketData" to GazeData", replace raw data with gaze object).
Replace timer with a while loop checking if the reader is ready and continuing if not (timer checks the socket every ten ms, while loop would work continually).
These are the steps
See https://github.com/SERESLab/iTrace-Eclipse/blob/issue85-itraceEngine/src/edu/ysu/itrace/EngineSocket.java
Steps 1 and 4 are done (just change "SocketData" to GazeData", replace raw data with gaze object). Replace timer with a while loop checking if the reader is ready and continuing if not (timer checks the socket every ten ms, while loop would work continually).