handling user and admin sockets separately