Commit a25d4631 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix documentation of onerror callback.

parent 0a0e89e3
...@@ -947,8 +947,8 @@ function Stream(sc, id, localId, pc, up) { ...@@ -947,8 +947,8 @@ function Stream(sc, id, localId, pc, up) {
*/ */
this.onclose = null; this.onclose = null;
/** /**
* onerror is called whenever an error occurs. If the error is * onerror is called whenever a fatal error occurs. The stream will
* fatal, then onclose will be called afterwards. * then be closed, and onclose called normally.
* *
* @type{(this: Stream, error: unknown) => void} * @type{(this: Stream, error: unknown) => void}
*/ */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment