Class TokenOptions.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • data

        public TokenOptions.Builder data​(String data)
        Call this method to set the secure (server-side) data associated to this token. Every client will receive this data in property Object Connection can be retrieved by subscribing to event connectionCreated of Session object in your clients.
        • If you have provided no data in your clients when calling method Session.connect(TOKEN, DATA) (DATA not defined), then will only have this data(String) property.
        • If you have provided some data when calling Session.connect(TOKEN, DATA) (DATA defined), then will have the following structure: "CLIENT_DATA%/%SERVER_DATA", being CLIENT_DATA the second parameter passed in OpenVidu Browser in method Session.connect and SERVER_DATA this data(String) property.