update weakmap/socket message