Closed dkapanidis closed 8 years ago
Please upgrade k8s module next using
var res = kubeapi.watch('watch/namespaces/default/pods', function(data){
console.log(data)
}, function(err){
console.log(err)
})
setTimeout(function() {
res.emit('close')
}, 2000)
Great, this works as expected
If a watch function is running, is there any way I can programmatically cancel the watch?