Is it more important to stay true to the JavaScript style of the library or should this port take into account the standard Dart style which is less error-prone than checking Strings? For example ,
socket.on('connect', (_) {});
would be
socket.onConnect((_) {});
etc