{"action":"created","issue":{"url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/70","repository_url":"https://api.github.com/repos/triniwiz/nativescript-socketio","labels_url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/70/comments","events_url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/70/events","html_url":"https://github.com/triniwiz/nativescript-socketio/issues/70","id":362989904,"node_id":"MDU6SXNzdWUzNjI5ODk5MDQ=","number":70,"title":"Connection through transports: ['websocket'] only","user":{"login":"agarzas","id":43526819,"node_id":"MDQ6VXNlcjQzNTI2ODE5","avatar_url":"https://avatars0.githubusercontent.com/u/43526819?v=4","gravatar_id":"","url":"https://api.github.com/users/agarzas","html_url":"https://github.com/agarzas","followers_url":"https://api.github.com/users/agarzas/followers","following_url":"https://api.github.com/users/agarzas/following{/other_user}","gists_url":"https://api.github.com/users/agarzas/gists{/gist_id}","starred_url":"https://api.github.com/users/agarzas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agarzas/subscriptions","organizations_url":"https://api.github.com/users/agarzas/orgs","repos_url":"https://api.github.com/users/agarzas/repos","events_url":"https://api.github.com/users/agarzas/events{/privacy}","received_events_url":"https://api.github.com/users/agarzas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-24T00:08:37Z","updated_at":"2018-09-24T13:34:57Z","closed_at":null,"author_association":"NONE","body":"Which platform(s) does your issue occur on?\r\n- Android\r\n- Device\r\n- CLI: 4.2.2\r\n- Cross-platform modules: 4.2.0\r\n- Plugin(s): 3.1.5\r\n\r\nIs this plugin capable of establish connections through websockets only?\r\nIf I set the socket.io sever as: transports: ['websocket'] I get a lot of logs saying:\r\n\r\n engine intercepting request for path \"/socket.io/\" +34s\r\n engine handling \"GET\" http request \"/socket.io/?EIO=3&token=ABC&transport=polling\" +0ms\r\n engine unknown transport \"polling\" +0ms\r\n\r\nHere is my code:\r\n`socket:SocketIO\r\n\r\n    constructor(\r\n        private _authenticationHandlerService: AuthenticationHandlerService,\r\n        private _routerExtensions: RouterExtensions,\r\n        private _ngZone: NgZone\r\n    ) {\r\n        let options: IOOptions = {\r\n            query: {\r\n                token: \"ABC\"\r\n            },\r\n            debug: true,\r\n            forceWebsockets: true,\r\n        }\r\n        this.socket = new SocketIO(\"http://{local-ip}\", options)\r\n    }`\r\n\r\nthis.socket.connect();\r\n\r\nIt only works when I set the server to accept 'polling' and then it can´t upgrade to websockets...\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/comments/423976258","html_url":"https://github.com/triniwiz/nativescript-socketio/issues/70#issuecomment-423976258","issue_url":"https://api.github.com/repos/triniwiz/nativescript-socketio/issues/70","id":423976258,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzk3NjI1OA==","user":{"login":"triniwiz","id":6695919,"node_id":"MDQ6VXNlcjY2OTU5MTk=","avatar_url":"https://avatars3.githubusercontent.com/u/6695919?v=4","gravatar_id":"","url":"https://api.github.com/users/triniwiz","html_url":"https://github.com/triniwiz","followers_url":"https://api.github.com/users/triniwiz/followers","following_url":"https://api.github.com/users/triniwiz/following{/other_user}","gists_url":"https://api.github.com/users/triniwiz/gists{/gist_id}","starred_url":"https://api.github.com/users/triniwiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/triniwiz/subscriptions","organizations_url":"https://api.github.com/users/triniwiz/orgs","repos_url":"https://api.github.com/users/triniwiz/repos","events_url":"https://api.github.com/users/triniwiz/events{/privacy}","received_events_url":"https://api.github.com/users/triniwiz/received_events","type":"User","site_admin":false},"created_at":"2018-09-24T13:34:56Z","updated_at":"2018-09-24T13:34:56Z","author_association":"OWNER","body":"`forceWebsockets: true` is for ios I think android uses `transports:['websocket']` I'll try adding a common prop for both platforms"}}
{"actor":{"display_login":"triniwiz"}}