diff options
author | metamuffin <metamuffin@yandex.com> | 2022-01-26 17:08:51 +0100 |
---|---|---|
committer | metamuffin <metamuffin@yandex.com> | 2022-01-26 17:08:51 +0100 |
commit | 4fdb01ab1935a18070efbd92879655360118a1ca (patch) | |
tree | 6edc8c00b2ca3a590d5745e14c2b7b46a7804c97 /source/client/room.ts | |
parent | 8cc5a50b91a3d80b28b03191b246974d3aca9bf8 (diff) | |
download | keks-meet-4fdb01ab1935a18070efbd92879655360118a1ca.tar keks-meet-4fdb01ab1935a18070efbd92879655360118a1ca.tar.bz2 keks-meet-4fdb01ab1935a18070efbd92879655360118a1ca.tar.zst |
stuff
Diffstat (limited to 'source/client/room.ts')
-rw-r--r-- | source/client/room.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/client/room.ts b/source/client/room.ts index 45ccd84..145fb1b 100644 --- a/source/client/room.ts +++ b/source/client/room.ts @@ -5,7 +5,7 @@ import { RemoteUser } from "./remote_user.ts"; import { User } from "./user.ts"; import { LocalUser } from "./local_user.ts"; import { hex_id, parameter_string } from "./helper.ts"; -import { CSPacket, SCPacket } from "../packets.ts"; +import { PacketS, PacketC } from "../packets.ts"; export class Room { @@ -29,11 +29,11 @@ export class Room { this.local_user = new LocalUser(this, parameter_string("username", `guest-${hex_id()}`)) } - websocket_send(data: CSPacket) { + websocket_send(data: PacketS) { log("ws", `-> ${data.receiver ?? "*"}`, data) this.websocket.send(JSON.stringify(data)) } - websocket_message(packet: SCPacket) { + websocket_message(packet: PacketC) { if (packet.join) { log("*", `${this.name} ${packet.sender} joined`); const ru = new RemoteUser(this, packet.sender) |