Skip to content

Commit

Permalink
emoji as heartbeat type ❤️
Browse files Browse the repository at this point in the history
  • Loading branch information
HerbCaudill committed Dec 12, 2023
1 parent dcbabd9 commit fd6ab20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export class Server extends EventEmitter<ServerEvents> {
}

switch (message.type) {
case "Heartbeat":
// nothing to do
case "❤️":
// heartbeat - nothing to do
this.log("♥", userName)
break

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export namespace Message {
export type ClientToServer = Join | Leave | Heartbeat

export interface Heartbeat {
type: "Heartbeat"
type: "❤️"
}

export interface Join {
Expand Down

0 comments on commit fd6ab20

Please sign in to comment.