new functions and js v=
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user