Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  1. Home
  2. karneaud
karneaud

karneaud

@karneaud

Chat Follow Unfollow
0
Reputation
3
Posts
1.4k
Profile views
0
Followers
0
Following
Joined 20 Jul 2018, 17:15 Last Online 8 Aug 2022, 16:19

  • Profile
  • More
    • Continue chat with karneaud
    • Flag Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
karneaud Follow

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 • 3 Nov 2018, 14:17
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 • 4 Aug 2018, 01:17

© 2023 Endel Dreyer