Implement user interface for token management.

This commit is contained in:
Juliusz Chroboczek
2023-03-31 21:04:19 +02:00
parent 8aa95f5e22
commit 8c1510023f
2 changed files with 184 additions and 3 deletions
+2 -2
View File
@@ -205,7 +205,7 @@ function ServerConnection() {
* 'id' is non-null, 'privileged' indicates whether the message was
* sent by an operator.
*
* @type {(this: ServerConnection, id: string, dest: string, username: string, time: Date, privileged: boolean, kind: string, message: unknown) => void}
* @type {(this: ServerConnection, id: string, dest: string, username: string, time: Date, privileged: boolean, kind: string, error: string, message: unknown) => void}
*/
this.onusermessage = null;
/**
@@ -453,7 +453,7 @@ ServerConnection.prototype.connect = async function(url) {
else if(sc.onusermessage)
sc.onusermessage.call(
sc, m.source, m.dest, m.username, parseTime(m.time),
m.privileged, m.kind, m.value,
m.privileged, m.kind, m.error, m.value,
);
break;
case 'ping':