Can now add middleware to authenticate during handshake