Removed emit

This commit is contained in:
Dennis Postma 2024-11-13 16:10:41 +01:00
parent ffc07b7403
commit fee4277b4f

View File

@ -38,9 +38,6 @@ export default class CharacterConnectEvent {
this.socket.characterId = character.id this.socket.characterId = character.id
this.socket.emit('character:connect', character) this.socket.emit('character:connect', character)
// Optionally notify other players or perform additional connection logic
this.io.emit('character:joined', { characterId: character.id })
} catch (error) { } catch (error) {
this.handleError('Failed to connect character', error) this.handleError('Failed to connect character', error)
} }