Skip to content

Commit de3092c

Browse files
authored
Merge pull request MetinSeylan#167 from nodegin/patch-1
Fix MetinSeylan#166
2 parents 73a0d32 + 1f33e87 commit de3092c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default class VueSocketIO {
4242
*/
4343
connect(connection){
4444

45-
if(connection && typeof connection === 'object' && connection.constructor.name === 'Socket'){
45+
if(connection && typeof connection === 'object'){
4646

4747
Logger.info('Received socket.io-client instance');
4848

@@ -62,4 +62,4 @@ export default class VueSocketIO {
6262

6363
}
6464

65-
}
65+
}

0 commit comments

Comments
 (0)