updating sockets to pass token