Implementation of websockets with support for authorization.