Socket connection to hosting page