This commit is contained in:
nodegin 2018-11-25 07:20:30 +08:00 committed by GitHub
parent 73a0d32d36
commit 1f33e87192
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){
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 {
}
}
}