From a25d46314af3989a343af8466e4dbaa1c9b1639a Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 30 Jul 2021 17:40:15 +0200 Subject: [PATCH] Fix documentation of onerror callback. --- static/protocol.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/protocol.js b/static/protocol.js index a5e1e97..f4f5ac4 100644 --- a/static/protocol.js +++ b/static/protocol.js @@ -947,8 +947,8 @@ function Stream(sc, id, localId, pc, up) { */ this.onclose = null; /** - * onerror is called whenever an error occurs. If the error is - * fatal, then onclose will be called afterwards. + * onerror is called whenever a fatal error occurs. The stream will + * then be closed, and onclose called normally. * * @type{(this: Stream, error: unknown) => void} */