{"action":"created","issue":{"url":"https://api.github.com/repos/coderstephen/slack-client/issues/13","labels_url":"https://api.github.com/repos/coderstephen/slack-client/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/coderstephen/slack-client/issues/13/comments","events_url":"https://api.github.com/repos/coderstephen/slack-client/issues/13/events","html_url":"https://github.com/coderstephen/slack-client/issues/13","id":121090725,"number":13,"title":"How does the looping functionality work?","user":{"login":"128keaton","id":1402918,"avatar_url":"https://avatars.githubusercontent.com/u/1402918?v=3","gravatar_id":"","url":"https://api.github.com/users/128keaton","html_url":"https://github.com/128keaton","followers_url":"https://api.github.com/users/128keaton/followers","following_url":"https://api.github.com/users/128keaton/following{/other_user}","gists_url":"https://api.github.com/users/128keaton/gists{/gist_id}","starred_url":"https://api.github.com/users/128keaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/128keaton/subscriptions","organizations_url":"https://api.github.com/users/128keaton/orgs","repos_url":"https://api.github.com/users/128keaton/repos","events_url":"https://api.github.com/users/128keaton/events{/privacy}","received_events_url":"https://api.github.com/users/128keaton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-08T20:20:00Z","updated_at":"2015-12-09T00:09:34Z","closed_at":null,"body":"I see that there is a loop, is it based off of when a user sends a message in the channel? I'd like to have a function ran when someone inputs a message. Right now, I'm using JS to refresh the div and send a request every minute or so."},"comment":{"url":"https://api.github.com/repos/coderstephen/slack-client/issues/comments/163063470","html_url":"https://github.com/coderstephen/slack-client/issues/13#issuecomment-163063470","issue_url":"https://api.github.com/repos/coderstephen/slack-client/issues/13","id":163063470,"user":{"login":"coderstephen","id":2192863,"avatar_url":"https://avatars.githubusercontent.com/u/2192863?v=3","gravatar_id":"","url":"https://api.github.com/users/coderstephen","html_url":"https://github.com/coderstephen","followers_url":"https://api.github.com/users/coderstephen/followers","following_url":"https://api.github.com/users/coderstephen/following{/other_user}","gists_url":"https://api.github.com/users/coderstephen/gists{/gist_id}","starred_url":"https://api.github.com/users/coderstephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderstephen/subscriptions","organizations_url":"https://api.github.com/users/coderstephen/orgs","repos_url":"https://api.github.com/users/coderstephen/repos","events_url":"https://api.github.com/users/coderstephen/events{/privacy}","received_events_url":"https://api.github.com/users/coderstephen/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T00:09:34Z","updated_at":"2015-12-09T00:09:34Z","body":"> I'd like to have a function ran when someone inputs a message. Right now, I'm using JS to refresh the div1 and send a request every minute or so.\r\n\r\nWhile that *could* work, it isn't really how the client is meant to be used, or ReactPHP projects in general. The client is designed to be run as a CLI script that acts as a daemon and *continuously* receives events and handles them. Putting the script behind a web server probably won't work that well."}}