Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

When opening an offer, first of all, it sets an event listener on "treeRefresh" which perform an externalRefresh if the owner id selfhdl is the same with the id from who opened the tree. In order to notify that a user has connected to the room, the akioma.SocketConnection.emitJoinRoom() method is called.

...

  • name: id
  • user: the authenticated user ( can be set to key+user, key+tenant+user, tenant+user)
  • action = can be set to "join" or "leave"
  • cleanUser: the authenticated user

The node.js will listen on the room event and check the action. If it's "join", perform an socket.join room and emit an event "room_{data.name}" with the action and the coresponding user. Swat-webui listen to that event and call a treeRoomNotification saying that someone joined or leaved.

...