Send title with connect error message

This commit is contained in:
Dennis Postma 2024-11-13 16:07:17 +01:00
parent 344ddbaf39
commit ffc07b7403

View File

@ -56,7 +56,7 @@ export default class CharacterConnectEvent {
}
private emitError(message: string): void {
this.socket.emit('notification', { message, type: 'error' })
this.socket.emit('notification', { title: 'Server message', message})
gameLogger.error('character:connect error', `Player ${this.socket.userId}: ${message}`)
}