The safe way to handle the `connect` socket event
github.com/szmarczak/defer-to-connect
szmarczak/defer-to-connect