Revert "Removed duplicated "newConnection" event logic"

This reverts commit 5b58d30bb02bb2f12cd5e763f19bf47a1bed6953.