{"action":"closed","issue":{"url":"https://api.github.com/repos/oneoo/alilua/issues/24","labels_url":"https://api.github.com/repos/oneoo/alilua/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/oneoo/alilua/issues/24/comments","events_url":"https://api.github.com/repos/oneoo/alilua/issues/24/events","html_url":"https://github.com/oneoo/alilua/issues/24","id":53853403,"number":24,"title":"websocket example error?","user":{"login":"sleepersTang","id":4645431,"avatar_url":"https://avatars.githubusercontent.com/u/4645431?v=3","gravatar_id":"","url":"https://api.github.com/users/sleepersTang","html_url":"https://github.com/sleepersTang","followers_url":"https://api.github.com/users/sleepersTang/followers","following_url":"https://api.github.com/users/sleepersTang/following{/other_user}","gists_url":"https://api.github.com/users/sleepersTang/gists{/gist_id}","starred_url":"https://api.github.com/users/sleepersTang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sleepersTang/subscriptions","organizations_url":"https://api.github.com/users/sleepersTang/orgs","repos_url":"https://api.github.com/users/sleepersTang/repos","events_url":"https://api.github.com/users/sleepersTang/events{/privacy}","received_events_url":"https://api.github.com/users/sleepersTang/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-09T10:24:48Z","updated_at":"2015-02-05T12:35:25Z","closed_at":"2015-02-05T12:35:25Z","body":"测试代码如下。\r\n```\r\nfunction on(data,frame_opcode,is_multi_frame)\r\n    LOG(INFO, \"function:on \" .. data)\r\n    websocket_send('['..data..']')\r\nend\r\n\r\nfunction loop()\r\n    local data = 'text ' .. time()\r\n    websocket_send(data)\r\n    sleep(2000)\r\nend\r\n\r\nwebsocket_accept(loop, on)\r\n```\r\n运行配置：\r\n```\r\n./alilua --bind=127.0.0.1:8080 --log=./log/debug.log,1 --accesslog=./log/accesslog.log\r\n```\r\n\r\n期望：\r\n```\r\n应该是服务端输出\r\n LOG(INFO, \"function:on \" .. data) \r\n客户端发过来的数据，实际上服务端并没有输出。\r\n确认客户端已经连接上了服务端，因为客户端一直打输出服务端发送过来的数据。\r\n```\r\n\r\n\r\n"}}