stream.js: add ping and timer management