From 1f33e87192718aee5053f8c6d743f3538bbc269a Mon Sep 17 00:00:00 2001 From: nodegin <10@nodeg.in> Date: Sun, 25 Nov 2018 07:20:30 +0800 Subject: [PATCH] Fix #166 --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}