Merge pull request #167 from nodegin/patch-1

Fix #166
This commit is contained in:
Metin Seylan 2018-11-25 21:32:17 +03:00 committed by GitHub
commit de3092cceb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ export default class VueSocketIO {
*/ */
connect(connection){ connect(connection){
if(connection && typeof connection === 'object' && connection.constructor.name === 'Socket'){ if(connection && typeof connection === 'object'){
Logger.info('Received socket.io-client instance'); Logger.info('Received socket.io-client instance');
@ -62,4 +62,4 @@ export default class VueSocketIO {
} }
} }