{"action":"closed","issue":{"url":"https://api.github.com/repos/sjs7007/S3Lab/issues/4","repository_url":"https://api.github.com/repos/sjs7007/S3Lab","labels_url":"https://api.github.com/repos/sjs7007/S3Lab/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/sjs7007/S3Lab/issues/4/comments","events_url":"https://api.github.com/repos/sjs7007/S3Lab/issues/4/events","html_url":"https://github.com/sjs7007/S3Lab/issues/4","id":165718996,"number":4,"title":"Send output from python to server to client live.","user":{"login":"sjs7007","id":1684352,"avatar_url":"https://avatars.githubusercontent.com/u/1684352?v=3","gravatar_id":"","url":"https://api.github.com/users/sjs7007","html_url":"https://github.com/sjs7007","followers_url":"https://api.github.com/users/sjs7007/followers","following_url":"https://api.github.com/users/sjs7007/following{/other_user}","gists_url":"https://api.github.com/users/sjs7007/gists{/gist_id}","starred_url":"https://api.github.com/users/sjs7007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjs7007/subscriptions","organizations_url":"https://api.github.com/users/sjs7007/orgs","repos_url":"https://api.github.com/users/sjs7007/repos","events_url":"https://api.github.com/users/sjs7007/events{/privacy}","received_events_url":"https://api.github.com/users/sjs7007/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"sjs7007","id":1684352,"avatar_url":"https://avatars.githubusercontent.com/u/1684352?v=3","gravatar_id":"","url":"https://api.github.com/users/sjs7007","html_url":"https://github.com/sjs7007","followers_url":"https://api.github.com/users/sjs7007/followers","following_url":"https://api.github.com/users/sjs7007/following{/other_user}","gists_url":"https://api.github.com/users/sjs7007/gists{/gist_id}","starred_url":"https://api.github.com/users/sjs7007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjs7007/subscriptions","organizations_url":"https://api.github.com/users/sjs7007/orgs","repos_url":"https://api.github.com/users/sjs7007/repos","events_url":"https://api.github.com/users/sjs7007/events{/privacy}","received_events_url":"https://api.github.com/users/sjs7007/received_events","type":"User","site_admin":false},"assignees":[{"login":"sjs7007","id":1684352,"avatar_url":"https://avatars.githubusercontent.com/u/1684352?v=3","gravatar_id":"","url":"https://api.github.com/users/sjs7007","html_url":"https://github.com/sjs7007","followers_url":"https://api.github.com/users/sjs7007/followers","following_url":"https://api.github.com/users/sjs7007/following{/other_user}","gists_url":"https://api.github.com/users/sjs7007/gists{/gist_id}","starred_url":"https://api.github.com/users/sjs7007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjs7007/subscriptions","organizations_url":"https://api.github.com/users/sjs7007/orgs","repos_url":"https://api.github.com/users/sjs7007/repos","events_url":"https://api.github.com/users/sjs7007/events{/privacy}","received_events_url":"https://api.github.com/users/sjs7007/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-07-15T06:15:57Z","updated_at":"2016-07-18T02:04:14Z","closed_at":"2016-07-18T02:04:14Z","body":"Don't wait for entire process to finish to send stdout. \r\n\r\nSolution : use sockets.\r\n\r\n1. client connects \r\n2. sends socket event  (socket.emit() , http://socket.io/docs/)\r\n3. socket starts python script. To ensure python sends stdout as and when generated, keep flushing stdout. (http://stackoverflow.com/questions/107705/disable-output-buffering) \r\n4. on stdout of python, socket sends data and event using socket.emit \r\n5. on client side, event is received using socket.on\r\n\r\nthis can be used for displaying graphs live in the dashboard."}}
{"actor":{"display_login":"sjs7007"}}