Adds basic auth to socket connections in express