{"action":"created","issue":{"url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/169","repository_url":"https://api.github.com/repos/pusher/pusher-websocket-java","labels_url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/169/labels{/name}","comments_url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/169/comments","events_url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/169/events","html_url":"https://github.com/pusher/pusher-websocket-java/issues/169","id":289814728,"number":169,"title":"It keeps reconnecting without throwing any error: how to debug this ?","user":{"login":"buGGed1","id":11668691,"avatar_url":"https://avatars1.githubusercontent.com/u/11668691?v=4","gravatar_id":"","url":"https://api.github.com/users/buGGed1","html_url":"https://github.com/buGGed1","followers_url":"https://api.github.com/users/buGGed1/followers","following_url":"https://api.github.com/users/buGGed1/following{/other_user}","gists_url":"https://api.github.com/users/buGGed1/gists{/gist_id}","starred_url":"https://api.github.com/users/buGGed1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buGGed1/subscriptions","organizations_url":"https://api.github.com/users/buGGed1/orgs","repos_url":"https://api.github.com/users/buGGed1/repos","events_url":"https://api.github.com/users/buGGed1/events{/privacy}","received_events_url":"https://api.github.com/users/buGGed1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-01-18T23:40:08Z","updated_at":"2018-02-14T09:11:21Z","closed_at":null,"author_association":"NONE","body":"I'm pretty sure the arguments I'm passing into PusherOptions are correct since modifying them will actually cause an exception in the program.\r\n\r\nThe problem is that even with the right parameters, after connect() method is called, it keeps connecting and reconnecting but it never prints any error. How can I debug this ?\r\n\r\n```\r\nState changed to CONNECTING from DISCONNECTED\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to RECONNECTING from CONNECTING\r\nState changed to CONNECTING from RECONNECTING\r\nState changed to DISCONNECTING from CONNECTING\r\nState changed to DISCONNECTED from DISCONNECTING\r\n```\r\nThis is how it is supposed to look in Ruby\r\n\r\n```\r\n# first install the \"pusher-client\" gem\r\n\r\nrequire 'pusher-client'\r\nrequire 'logger'\r\n\r\nlogger = Logger.new(STDOUT)\r\nlogger.sev_threshold = Logger::INFO\r\nPusherClient.logger = logger\r\n\r\noptions = {:secure => true, :ws_host => 'notifier.bitskins.com', :ws_port => 443, :wss_port => 443}\r\npusher = PusherClient::Socket.new('c0eef4118084f8164bec65e6253bf195', options)\r\n\r\npusher.connect(true) # make it asynchronous\r\n\r\npusher.subscribe(CHANNEL) # subscribe to the relevant channel, see docs below\r\n\r\npusher[CHANNEL].bind(EVENT_TYPE) do |data|\r\n     # monitor a particular event_type on this channel, see docs below\r\n     logger.info data\r\nend\r\n\r\nloop do\r\n     sleep 1 # keep main thread running if asynchronous\r\nend\r\n  \r\n```\r\n\r\nand this is my implementation  in Java\r\n\r\n```\r\nPusherOptions options = new PusherOptions();\r\n        options.setHost(\"notifier.bitskins.com\");\r\n        options.setEncrypted(true);\r\n        options.setWsPort(443);\r\n        options.setWssPort(443);\r\n        Pusher pusher = new Pusher(\"c0eef4118084f8164bec65e6253bf195\", options);\r\n\r\n        pusher.connect(new ConnectionEventListener() {\r\n            @Override\r\n            public void onConnectionStateChange(ConnectionStateChange change) {\r\n                System.out.println(\"State changed to \" + change.getCurrentState()\r\n                        + \" from \" + change.getPreviousState());\r\n            }\r\n\r\n            @Override\r\n            public void onError(String message, String code, Exception e) {\r\n                System.out.println(message + \" \" + code + \" \" + Arrays.toString(e.getStackTrace()));\r\n            }\r\n            \r\n            \r\n        }, ConnectionState.ALL);\r\n\r\n        \r\n\r\n        pusher.connect();\r\n```"},"comment":{"url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/comments/365541016","html_url":"https://github.com/pusher/pusher-websocket-java/issues/169#issuecomment-365541016","issue_url":"https://api.github.com/repos/pusher/pusher-websocket-java/issues/169","id":365541016,"user":{"login":"zmarkan","id":579014,"avatar_url":"https://avatars0.githubusercontent.com/u/579014?v=4","gravatar_id":"","url":"https://api.github.com/users/zmarkan","html_url":"https://github.com/zmarkan","followers_url":"https://api.github.com/users/zmarkan/followers","following_url":"https://api.github.com/users/zmarkan/following{/other_user}","gists_url":"https://api.github.com/users/zmarkan/gists{/gist_id}","starred_url":"https://api.github.com/users/zmarkan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmarkan/subscriptions","organizations_url":"https://api.github.com/users/zmarkan/orgs","repos_url":"https://api.github.com/users/zmarkan/repos","events_url":"https://api.github.com/users/zmarkan/events{/privacy}","received_events_url":"https://api.github.com/users/zmarkan/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T09:11:21Z","updated_at":"2018-02-14T09:11:21Z","author_association":"CONTRIBUTOR","body":"Nice! Thanks for this! I'll merge and release it asap."}}
{"actor":{"display_login":"zmarkan"}}