{"action":"created","issue":{"url":"https://api.github.com/repos/5HT/n2o/issues/195","labels_url":"https://api.github.com/repos/5HT/n2o/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/5HT/n2o/issues/195/comments","events_url":"https://api.github.com/repos/5HT/n2o/issues/195/events","html_url":"https://github.com/5HT/n2o/issues/195","id":57293235,"number":195,"title":"Using xhrPolling  way to connect server , i can not take the request body out?","user":{"login":"xiaoliuliu2050","id":6425930,"avatar_url":"https://avatars.githubusercontent.com/u/6425930?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaoliuliu2050","html_url":"https://github.com/xiaoliuliu2050","followers_url":"https://api.github.com/users/xiaoliuliu2050/followers","following_url":"https://api.github.com/users/xiaoliuliu2050/following{/other_user}","gists_url":"https://api.github.com/users/xiaoliuliu2050/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaoliuliu2050/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaoliuliu2050/subscriptions","organizations_url":"https://api.github.com/users/xiaoliuliu2050/orgs","repos_url":"https://api.github.com/users/xiaoliuliu2050/repos","events_url":"https://api.github.com/users/xiaoliuliu2050/events{/privacy}","received_events_url":"https://api.github.com/users/xiaoliuliu2050/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-02-11T09:32:18Z","updated_at":"2015-02-16T00:46:17Z","closed_at":"2015-02-16T00:46:17Z","body":"```javascript\r\nthe client side ,here is the code:\r\n            ws= new bullet(\"http://ecs999.eicp.net:8000/ws/hui2hui_index\");\r\n            ws.onopen = function() {\r\n                window.alert(\"open!\");\r\n               \r\n                var str=\"{'client',[{'rpc_api_id','hui2hui_Create_User'}]}\";\r\n                ws.send(str);\r\n            };\r\n```\r\n\r\nI debug the server code and find that it go in the handle method  in the file named \"bullet_handle.erl\" ：  \r\n----------------\r\nhandle(Req, State=#state{handler=Handler, handler_state=HandlerState},\r\n\t\t<<\"POST\">>) ->\r\n--------------\r\n\r\nand in this method , here is the code and my dubug info \r\n\r\n\tcase cowboy_req:body(Req) of\r\n\t\t{ok, Data, Req2} ->\r\n\r\n    % -- Debug info ----------------------------------------------\r\n      io:format(\"bullet_handler:handle3(): data: ~s~n\", [Data]),\r\n    % -- Debug info ----------------------------------------------\r\n\r\n\r\n\r\n\t\t\tcase Handler:stream(Data, Req2, HandlerState) of\r\n\t\t\t\t{ok, Req3, HandlerState2} ->\r\n\t\t\t\t\t{ok, Req3, State#state{handler_state=HandlerState2}};\r\n\t\t\t\t{reply, Reply, Req3, HandlerState2} ->\r\n\t\t\t\t\t{ok, Req4} = cowboy_req:reply(200, [], Reply, Req3),\r\n\t\t\t\t\t{ok, Req4, State#state{handler_state=HandlerState2}}\r\n\t\t\tend;\r\n\t\t{error, _} ->\r\n\t\t\t%% An error occurred, stop there.\r\n\t\t\t{ok, Req, State}\r\n\tend.\r\n\r\n\r\n\r\n\r\n\r\nhowever no matter what i send from the client side ,i just can not take the request body out ?\r\n\r\nso i am here  hope to get help."},"comment":{"url":"https://api.github.com/repos/5HT/n2o/issues/comments/74446859","html_url":"https://github.com/5HT/n2o/issues/195#issuecomment-74446859","issue_url":"https://api.github.com/repos/5HT/n2o/issues/195","id":74446859,"user":{"login":"5HT","id":144776,"avatar_url":"https://avatars.githubusercontent.com/u/144776?v=3","gravatar_id":"","url":"https://api.github.com/users/5HT","html_url":"https://github.com/5HT","followers_url":"https://api.github.com/users/5HT/followers","following_url":"https://api.github.com/users/5HT/following{/other_user}","gists_url":"https://api.github.com/users/5HT/gists{/gist_id}","starred_url":"https://api.github.com/users/5HT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5HT/subscriptions","organizations_url":"https://api.github.com/users/5HT/orgs","repos_url":"https://api.github.com/users/5HT/repos","events_url":"https://api.github.com/users/5HT/events{/privacy}","received_events_url":"https://api.github.com/users/5HT/received_events","type":"User","site_admin":false},"created_at":"2015-02-16T00:46:16Z","updated_at":"2015-02-16T00:46:16Z","body":"See #196 "}}