new functions and js v=

This commit is contained in:
Mateusz Gruszczyński
2026-07-25 17:15:54 +02:00
parent d1d8bb0259
commit 0a02a0880e
31 changed files with 1035 additions and 610 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
import { logError, logInfo, logWarn } from "./logger.js";
import { logError, logInfo, logWarn } from "@rustpad/logger";
class RoomSocket {
constructor(options) {
@@ -19,7 +19,7 @@ class RoomSocket {
this.socket = new WebSocket(this.url);
this.socket.addEventListener("open", () => {
logInfo("websocket.open", { kind: this.kind });
this.send({ type: "authenticate", password: this.password || null, access_token: this.accessToken || null, nickname: this.nickname || null, session_token: this.sessionToken || null, color: this.color || null });
this.send({ type: "authenticate", password: this.password || null, access_token: this.accessToken || null, nickname: this.nickname || null, session_token: this.sessionToken || null, guest_id: this.guestId || null, color: this.color || null });
});
this.socket.addEventListener("message", event => {
let message;