diff --git a/src/index.js b/src/index.js index d2a0412..ae31c89 100644 --- a/src/index.js +++ b/src/index.js @@ -42,7 +42,7 @@ export default class VueSocketIO { */ connect(connection){ - if(connection && typeof connection === 'object' && connection.constructor.name === 'Socket'){ + if(connection && typeof connection === 'object'){ Logger.info('Received socket.io-client instance'); @@ -62,4 +62,4 @@ export default class VueSocketIO { } -} \ No newline at end of file +}