{"action":"closed","issue":{"url":"https://api.github.com/repos/walkor/phpsocket.io/issues/31","repository_url":"https://api.github.com/repos/walkor/phpsocket.io","labels_url":"https://api.github.com/repos/walkor/phpsocket.io/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/walkor/phpsocket.io/issues/31/comments","events_url":"https://api.github.com/repos/walkor/phpsocket.io/issues/31/events","html_url":"https://github.com/walkor/phpsocket.io/issues/31","id":167170029,"number":31,"title":"$socket->emit 输出一个较大的JSON或对象时，会引起Client终断重连","user":{"login":"zoujingli","id":4349951,"avatar_url":"https://avatars.githubusercontent.com/u/4349951?v=3","gravatar_id":"","url":"https://api.github.com/users/zoujingli","html_url":"https://github.com/zoujingli","followers_url":"https://api.github.com/users/zoujingli/followers","following_url":"https://api.github.com/users/zoujingli/following{/other_user}","gists_url":"https://api.github.com/users/zoujingli/gists{/gist_id}","starred_url":"https://api.github.com/users/zoujingli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zoujingli/subscriptions","organizations_url":"https://api.github.com/users/zoujingli/orgs","repos_url":"https://api.github.com/users/zoujingli/repos","events_url":"https://api.github.com/users/zoujingli/events{/privacy}","received_events_url":"https://api.github.com/users/zoujingli/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-23T06:02:40Z","updated_at":"2016-08-01T12:59:56Z","closed_at":"2016-08-01T12:59:56Z","body":"改为这样内容是可以正常使用的\r\n`function socket_encode($obj) {\r\n    return base64_encode(json_encode($obj, JSON_UNESCAPED_SLASHES));\r\n}\r\n$socket->emit('sync user', socket_encode($rst));`\r\n如果直接传JSON格式也会导致Socket.io.js终断重连，只能base64下"}}
{"actor":{"display_login":"walkor"}}