Use Supply.on_demand in sockets implementation.