Don't override connection.on
Removed unused var