{"action":"created","issue":{"url":"https://api.github.com/repos/SamSaffron/message_bus/issues/157","repository_url":"https://api.github.com/repos/SamSaffron/message_bus","labels_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/157/comments","events_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/157/events","html_url":"https://github.com/SamSaffron/message_bus/issues/157","id":285372891,"node_id":"MDU6SXNzdWUyODUzNzI4OTE=","number":157,"title":"Long Polling only happening every 25 seconds?","user":{"login":"smtlaissezfaire","id":3690,"node_id":"MDQ6VXNlcjM2OTA=","avatar_url":"https://avatars0.githubusercontent.com/u/3690?v=4","gravatar_id":"","url":"https://api.github.com/users/smtlaissezfaire","html_url":"https://github.com/smtlaissezfaire","followers_url":"https://api.github.com/users/smtlaissezfaire/followers","following_url":"https://api.github.com/users/smtlaissezfaire/following{/other_user}","gists_url":"https://api.github.com/users/smtlaissezfaire/gists{/gist_id}","starred_url":"https://api.github.com/users/smtlaissezfaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smtlaissezfaire/subscriptions","organizations_url":"https://api.github.com/users/smtlaissezfaire/orgs","repos_url":"https://api.github.com/users/smtlaissezfaire/repos","events_url":"https://api.github.com/users/smtlaissezfaire/events{/privacy}","received_events_url":"https://api.github.com/users/smtlaissezfaire/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2018-01-02T08:00:59Z","updated_at":"2018-12-20T07:35:29Z","closed_at":null,"author_association":"NONE","body":"I'm seeing long polling events getting chunked and the js client only receiving all of the messages on the channel, but only every 25 seconds.\r\n\r\nIf, on the other hand, I run something like this in a console:\r\n```ruby\r\nMessageBus.subscribe('/my_channel') do |msg|\r\n  puts msg\r\nend\r\n```\r\n\r\nI see the results immediately.\r\n\r\nI couldn't find any config variables that were set with 25 seconds.  Any idea why this would be the case?\r\n\r\nI tried setting \r\n```ruby\r\nMessageBus.enableLongPolling = false;\r\nMessageBus.callbackInterval = 1500;\r\n```\r\nin which I start to get messages \"immediately\" (every second and half).\r\n\r\nAlso, I tried setting `MessageBus.alwaysLongPoll = true;` and `MessageBus.enableChunkedEncoding = false;` without any change in behavior.\r\n\r\nI can confirm that this happens in both safari and chrome on OS X (haven't tried FF yet).\r\n\r\nI'm integrating into Sinatra, calling `use MessageBus::Rack::Middleware` in my `config.ru` and using thin v1.7.2.  Using message_bus gem version 2.1.1."},"comment":{"url":"https://api.github.com/repos/SamSaffron/message_bus/issues/comments/448902017","html_url":"https://github.com/SamSaffron/message_bus/issues/157#issuecomment-448902017","issue_url":"https://api.github.com/repos/SamSaffron/message_bus/issues/157","id":448902017,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODkwMjAxNw==","user":{"login":"pierreozoux","id":1863453,"node_id":"MDQ6VXNlcjE4NjM0NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1863453?v=4","gravatar_id":"","url":"https://api.github.com/users/pierreozoux","html_url":"https://github.com/pierreozoux","followers_url":"https://api.github.com/users/pierreozoux/followers","following_url":"https://api.github.com/users/pierreozoux/following{/other_user}","gists_url":"https://api.github.com/users/pierreozoux/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreozoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreozoux/subscriptions","organizations_url":"https://api.github.com/users/pierreozoux/orgs","repos_url":"https://api.github.com/users/pierreozoux/repos","events_url":"https://api.github.com/users/pierreozoux/events{/privacy}","received_events_url":"https://api.github.com/users/pierreozoux/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T07:35:29Z","updated_at":"2018-12-20T07:35:29Z","author_association":"NONE","body":"@evanphx send us your public ssh key by mail or here, I'll give you access to a VM with a reproducible test based on discourse.\r\nContact@indie.host"}}
{"actor":{"display_login":"pierreozoux"}}