{"action":"created","issue":{"url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/444","repository_url":"https://api.github.com/repos/ratchetphp/Ratchet","labels_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/444/labels{/name}","comments_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/444/comments","events_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/444/events","html_url":"https://github.com/ratchetphp/Ratchet/issues/444","id":166636446,"number":444,"title":"onMessage and a very long running task","user":{"login":"harveyslash","id":7107410,"avatar_url":"https://avatars.githubusercontent.com/u/7107410?v=3","gravatar_id":"","url":"https://api.github.com/users/harveyslash","html_url":"https://github.com/harveyslash","followers_url":"https://api.github.com/users/harveyslash/followers","following_url":"https://api.github.com/users/harveyslash/following{/other_user}","gists_url":"https://api.github.com/users/harveyslash/gists{/gist_id}","starred_url":"https://api.github.com/users/harveyslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harveyslash/subscriptions","organizations_url":"https://api.github.com/users/harveyslash/orgs","repos_url":"https://api.github.com/users/harveyslash/repos","events_url":"https://api.github.com/users/harveyslash/events{/privacy}","received_events_url":"https://api.github.com/users/harveyslash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ratchetphp/Ratchet/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-07-20T17:24:46Z","updated_at":"2016-07-21T12:54:51Z","closed_at":null,"body":"I want to perform a long running task in ratchet , so I did: \r\n\r\n```\r\npublic function onMessage(ConnectionInterface $from, $msg)\r\n    {\r\n//      if message is from this server,broadcast message, and end it there\r\n        echo \"on message    $msg\";\r\n        sleep(1000);\r\n     \r\n    }\r\n```\r\nto simulate a long running task. \r\nI have a php script that uses pawl library to send a message to ratchet. \r\nHowever, that script runs fine the first time, but second time onwards , it waits. \r\nWhy is this synchronous ? \r\n\r\nI had expected to receive some message from client , and performing an HTTP request internally. \r\nThe http request will be a fairly long running task (few hundred ms). Is what Im looking for not possible ?"},"comment":{"url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/comments/234244525","html_url":"https://github.com/ratchetphp/Ratchet/issues/444#issuecomment-234244525","issue_url":"https://api.github.com/repos/ratchetphp/Ratchet/issues/444","id":234244525,"user":{"login":"harveyslash","id":7107410,"avatar_url":"https://avatars.githubusercontent.com/u/7107410?v=3","gravatar_id":"","url":"https://api.github.com/users/harveyslash","html_url":"https://github.com/harveyslash","followers_url":"https://api.github.com/users/harveyslash/followers","following_url":"https://api.github.com/users/harveyslash/following{/other_user}","gists_url":"https://api.github.com/users/harveyslash/gists{/gist_id}","starred_url":"https://api.github.com/users/harveyslash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harveyslash/subscriptions","organizations_url":"https://api.github.com/users/harveyslash/orgs","repos_url":"https://api.github.com/users/harveyslash/repos","events_url":"https://api.github.com/users/harveyslash/events{/privacy}","received_events_url":"https://api.github.com/users/harveyslash/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T12:54:51Z","updated_at":"2016-07-21T12:54:51Z","body":"any code for ratchet that I can see ? I haven't used react and I'm not familiar with the technology so well"}}
{"actor":{"display_login":"harveyslash"}}