{"action":"created","issue":{"url":"https://api.github.com/repos/primus/primus/issues/415","labels_url":"https://api.github.com/repos/primus/primus/issues/415/labels{/name}","comments_url":"https://api.github.com/repos/primus/primus/issues/415/comments","events_url":"https://api.github.com/repos/primus/primus/issues/415/events","html_url":"https://github.com/primus/primus/issues/415","id":121677836,"number":415,"title":"Help - Replace socketio code with primus ","user":{"login":"pnreddysvu","id":10413413,"avatar_url":"https://avatars.githubusercontent.com/u/10413413?v=3","gravatar_id":"","url":"https://api.github.com/users/pnreddysvu","html_url":"https://github.com/pnreddysvu","followers_url":"https://api.github.com/users/pnreddysvu/followers","following_url":"https://api.github.com/users/pnreddysvu/following{/other_user}","gists_url":"https://api.github.com/users/pnreddysvu/gists{/gist_id}","starred_url":"https://api.github.com/users/pnreddysvu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pnreddysvu/subscriptions","organizations_url":"https://api.github.com/users/pnreddysvu/orgs","repos_url":"https://api.github.com/users/pnreddysvu/repos","events_url":"https://api.github.com/users/pnreddysvu/events{/privacy}","received_events_url":"https://api.github.com/users/pnreddysvu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-12-11T10:10:44Z","updated_at":"2015-12-13T11:06:52Z","closed_at":"2015-12-13T10:49:29Z","body":"I am new to Primus. Can any one tell me how to rewrite the below code with Primus and SockJs-Client\r\nwith automatic reconnection?\r\n\r\nhttps://github.com/andyet/SimpleWebRTC/blob/master/socketioconnection.js\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/primus/primus/issues/comments/164247501","html_url":"https://github.com/primus/primus/issues/415#issuecomment-164247501","issue_url":"https://api.github.com/repos/primus/primus/issues/415","id":164247501,"user":{"login":"lpinca","id":1443911,"avatar_url":"https://avatars.githubusercontent.com/u/1443911?v=3","gravatar_id":"","url":"https://api.github.com/users/lpinca","html_url":"https://github.com/lpinca","followers_url":"https://api.github.com/users/lpinca/followers","following_url":"https://api.github.com/users/lpinca/following{/other_user}","gists_url":"https://api.github.com/users/lpinca/gists{/gist_id}","starred_url":"https://api.github.com/users/lpinca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpinca/subscriptions","organizations_url":"https://api.github.com/users/lpinca/orgs","repos_url":"https://api.github.com/users/lpinca/repos","events_url":"https://api.github.com/users/lpinca/events{/privacy}","received_events_url":"https://api.github.com/users/lpinca/received_events","type":"User","site_admin":false},"created_at":"2015-12-13T11:06:52Z","updated_at":"2015-12-13T11:06:52Z","body":"@pnreddysvu we use [recovery](https://github.com/unshiftio/recovery) in Primus to handle the reconnection. I don't know but maybe you can you use that module to implement a reconnection system on top of SockJS-client."}}