mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 10:13:40 +08:00
301a0fa54e
Before this commit, the presence state of users were stored on the server side and any updates to the state meant we had to publish the entire state to the clients. Also, the way the state of users were stored on the server side meant we didn't have a way to differentiate between replying users and whispering users. In this redesign, we decided to move the tracking of users state to the client side and have the server publish client events instead. As a result of this change, we're able to remove the number of opened connections needed to track presence and also reduce the payload that is sent for each event. At the same time, we've also improved on the restrictions when publishing message_bus messages. Users that do not have permission to see certain events will not receive messages for those events.
10 lines
147 B
YAML
10 lines
147 B
YAML
plugins:
|
|
presence_enabled:
|
|
default: true
|
|
client: true
|
|
presence_max_users_shown:
|
|
default: 5
|
|
client: true
|
|
min: 1
|
|
max: 50
|