Posted 6 January 2026, 3:45 am EST
My team currently possesses a collaboration platform based on Y.js, and we are in the process of developing an application that integrates SpreadJS into this existing environment. Consequently, we intend not to utilize the @mescius/js-collaboration server; rather, we aim to employ solely the user presence display functionality on SpreadJS client.
According to the article linked below, it appears that the user presence can be configured via the setPresences() method:
https://developer.mescius.com/spreadjs/docs/spreadjs-collaboration-server/spreadjs-sheets-collaboration/user/presence
let presences = [{
user: {
id: '1',
name: 'User1',
color: '#FF0000'
},
status: {
selections: {
selections: [new GC.Spread.Sheets.Range(0, 0, 1, 1)],
sheetId: 'sheet1'
}
}
}];
spread.collaboration.setPresences(presences);
However, I noticed that the sample demo code you kindly provided did not include any usage of the setPresences() method. I would be immensely grateful if you could furnish an example demonstrating how to properly utilize the setPresences() method within the context of SpreadJS collaboration.