Hook up correct socket calls