publish socket to window