Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. karneaud
    3. Posts
    • Profile
    • More
      • Continue chat with karneaud
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Posts made by karneaud

    Listeners triggered even though listening to different state properties

    I have the following logic client side

    room.listen('pullPosition/:position', (change) => {
        console.log('position', change);
        if(ready && !state.isHoldEnabled) state.setPosition(change.value)
      })
    
      room.listen('pullPosition/:hold', (change) => {
        console.log('hold', change);
      })
    

    I'm experiencing and issue where if pullPosition/:position changes BOTH listeners are triggered despite not listening to the same property.... Is this how its suppose to happen by design?

    posted in Questions & Help •
    On locked event

    Is there an locked unlocked event we can listen to or is it I need to implement my own triggers for when room is full/ maxClient reached?

    posted in Questions & Help •