{"action":"created","issue":{"url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/262","repository_url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge","labels_url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/262/labels{/name}","comments_url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/262/comments","events_url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/262/events","html_url":"https://github.com/marcuswestin/WebViewJavascriptBridge/issues/262","id":201165469,"number":262,"title":"How JS know there is no handler in OC","user":{"login":"nwyle","id":9199047,"avatar_url":"https://avatars.githubusercontent.com/u/9199047?v=3","gravatar_id":"","url":"https://api.github.com/users/nwyle","html_url":"https://github.com/nwyle","followers_url":"https://api.github.com/users/nwyle/followers","following_url":"https://api.github.com/users/nwyle/following{/other_user}","gists_url":"https://api.github.com/users/nwyle/gists{/gist_id}","starred_url":"https://api.github.com/users/nwyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwyle/subscriptions","organizations_url":"https://api.github.com/users/nwyle/orgs","repos_url":"https://api.github.com/users/nwyle/repos","events_url":"https://api.github.com/users/nwyle/events{/privacy}","received_events_url":"https://api.github.com/users/nwyle/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-17T03:08:37Z","updated_at":"2017-01-17T12:30:02Z","closed_at":null,"body":"When I call jsBridge.callHandler(\"handlerName\"), If there is no register for this handler in oc.\r\nhow can I know this in my javascript code?\r\nI find there is only a NSLog in WebViewJavascriptBridgeBase's method flushMessageQueue, but no response to JS.\r\nif (!handler) {\r\n    NSLog(@\"WVJBNoHandlerException, No handler for message from JS: %@\", message);\r\n    continue;\r\n}\r\n"},"comment":{"url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/comments/273126365","html_url":"https://github.com/marcuswestin/WebViewJavascriptBridge/issues/262#issuecomment-273126365","issue_url":"https://api.github.com/repos/marcuswestin/WebViewJavascriptBridge/issues/262","id":273126365,"user":{"login":"marcuswestin","id":131967,"avatar_url":"https://avatars.githubusercontent.com/u/131967?v=3","gravatar_id":"","url":"https://api.github.com/users/marcuswestin","html_url":"https://github.com/marcuswestin","followers_url":"https://api.github.com/users/marcuswestin/followers","following_url":"https://api.github.com/users/marcuswestin/following{/other_user}","gists_url":"https://api.github.com/users/marcuswestin/gists{/gist_id}","starred_url":"https://api.github.com/users/marcuswestin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcuswestin/subscriptions","organizations_url":"https://api.github.com/users/marcuswestin/orgs","repos_url":"https://api.github.com/users/marcuswestin/repos","events_url":"https://api.github.com/users/marcuswestin/events{/privacy}","received_events_url":"https://api.github.com/users/marcuswestin/received_events","type":"User","site_admin":false},"created_at":"2017-01-17T12:30:02Z","updated_at":"2017-01-17T12:30:02Z","body":"Hi! In order to help I just need some more info. Why do you need to know if\nthere is a registered handler?\n\nCheers\nOn Mon, Jan 16, 2017 at 10:08 PM nwyle <notifications@github.com> wrote:\n\n> When I call jsBridge.callHandler(\"handlerName\"), If there is no register\n> for this handler in oc.\n> how can I know this in my javascript code?\n> I find there is only a NSLog in WebViewJavascriptBridgeBase's method\n> flushMessageQueue, but no response to JS.\n> if (!handler) {\n> NSLog(@\"WVJBNoHandlerException, No handler for message from JS: %@\",\n> message);\n> continue;\n> }\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/marcuswestin/WebViewJavascriptBridge/issues/262>, or mute\n> the thread\n> <https://github.com/notifications/unsubscribe-auth/AAIDf_qCJpMqoekmn1bxEOckZ-NFThzuks5rTDC2gaJpZM4LlLvy>\n> .\n>\n-- \n-- while mobile\n"}}
{"actor":{"display_login":"marcuswestin"}}