The first time a client connects there will be no persistentId. The server will then create and add a persistentId.

The server will kick other clients with the same persistentId when a new client connects. So if you add a custom PersistentId you have to be aware of this!

The sample below shows how to set a custom persistent id for the C# client. Note that this have to be done before calling Open()

var conn = new XSockets.XSocketClient("ws://localhost:4502", "http://localhost", "yourcontroller");
conn.PersistentId = Guid.Parse("8CE18065-1E87-46AF-9FEA-C17A83CDE45C")

results matching ""

    No results matching ""