According to this issue https://github.com/dart-lang/sdk/issues/31149 we should change the implementation of this line - https://github.com/rikulo/socket.io-client-dart/blob/73adbcf639bc7f6fa535ab567e5adae3e5090214/lib/src/manager.dart#L97 by using `this.emit(event, data);` to avoid dart2js issue.