Factor out local channel from client
Remove client function, use connect instead