obviously sockets endpoint shouldn't be localhost...