Hi,
we have just upgraded our OpenVidu Pro server to version 2.16.0 and our custom Node-based server to openvidu-node-client 2.16.2.
Now we think we stumpled upon a problem:
We can not get server-side data from a Connection object in Session.activeConnections array anymore. In previous versions you could just use Connection.serverData.
We have seen the updated documentation and according to it, we should now be able to get this data from Connection.connectionProperties.data. But it still is not working and a simple JSON.stringify() output of Connection.connectionProperties shows, that there is no data property at all or it is undefined. All other properties are there just as documented.
We definitely attach server-side data by providing a value for TokenOptions.data when calling Session.generateToken().
Is this a bug, an error in your updated documentation or are we missing something here?
Thanks for your help
Sven
+++ UPDATE +++
Just some more informations on this issue:
-Even if we use the new Session.createConnection() and provide a ConnectionProperties object with data property instead of the now deprecated Session.generateToken(tokenOptions), we are still not able to get the server-side data of the connection.
-We use Session.fetch() function to make sure the data is up to date before trying to access the data property of the Connection.connectionProperties object. We do it in the onResolve handler of the Promise object returned by Session.fetch().
+++ UPDATE 2 +++
The connectionProperties of the Connection object returned on resolve by Session.createConnection() does also not include any data property.
+++ UPDATE 3 +++
Server data in OpenVidu inspector web interface also shows No data.