Moved handler to onconnection
Modified .gitignore