how to validate username and id in websocket

Thanks your I understand