socket message and authorization