diff --git a/client/src/neko/base.ts b/client/src/neko/base.ts index 43267b1d..6068fcd5 100644 --- a/client/src/neko/base.ts +++ b/client/src/neko/base.ts @@ -63,7 +63,9 @@ export abstract class BaseClient extends EventEmitter { this[EVENT.CONNECTING]() try { - this._ws = new WebSocket(`${url}?password=${encodeURIComponent(password)}`) + this._ws = new WebSocket( + `${url}?password=${encodeURIComponent(password)}&username=${encodeURIComponent(displayname)}`, + ) this.emit('debug', `connecting to ${this._ws.url}`) this._ws.onmessage = this.onMessage.bind(this) this._ws.onerror = () => this.onError.bind(this)