Skip to content

Commit

Permalink
log
Browse files Browse the repository at this point in the history
  • Loading branch information
tailuge committed Dec 28, 2024
1 parent c67f00a commit e8fcb51
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/container/browsercontainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export class BrowserContainer {

netEvent(e: string) {
const event = EventUtil.fromSerialised(e)
console.log(`${this.playername} received ${event.type} ${event.clientId}`)
console.log(`${this.playername} received ${event.type} : ${event.clientId}`)
this.container.eventQueue.push(event)
}

Expand Down
1 change: 1 addition & 0 deletions src/network/client/socketconnection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class SocketConnection {
this.lastSentIdentifier = `${this.id}-${this.sequenceId++}`
event.sequence = this.lastSentIdentifier
event.clientId = Session.getInstance().clientId
console.log(`sending with clientId : ${event.clientId}`)
this.ws.send(EventUtil.serialise(event))
this.sent.push(event)
}
Expand Down

0 comments on commit e8fcb51

Please sign in to comment.