sockets identity to str
key must be string type