Send title with connect error message
This commit is contained in:
parent
344ddbaf39
commit
ffc07b7403
@ -56,7 +56,7 @@ export default class CharacterConnectEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private emitError(message: string): void {
|
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}`)
|
gameLogger.error('character:connect error', `Player ${this.socket.userId}: ${message}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user