diff --git a/src/api.ts b/src/api.ts index 17b9d05..9a29ebb 100644 --- a/src/api.ts +++ b/src/api.ts @@ -295,9 +295,8 @@ export class FedwaveChat { } async sendWhisper(recipient: string, msg: string): Promise { - await $http.post(this._apiPrefix + this._whisperEndpoint, { - chatToken: this.userProfile.jwt, - receiver: recipient, + this._socket.emit("whisper", { + to: recipient, message: msg, }); }