We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbabd9 commit fd6ab20Copy full SHA for fd6ab20
src/Server.ts
@@ -136,8 +136,8 @@ export class Server extends EventEmitter<ServerEvents> {
136
}
137
138
switch (message.type) {
139
- case "Heartbeat":
140
- // nothing to do
+ case "❤️":
+ // heartbeat - nothing to do
141
this.log("♥", userName)
142
break
143
src/types.ts
@@ -15,7 +15,7 @@ export namespace Message {
15
export type ClientToServer = Join | Leave | Heartbeat
16
17
export interface Heartbeat {
18
- type: "Heartbeat"
+ type: "❤️"
19
20
21
export interface Join {
0 commit comments