Team XSockets.NET

Using Storage

This feature lets you store any serializable object on the server by using simple methods on the client API's. This is useful when you need to store data between connections/pages for the client. You are responsible for cleaning up the memory your self since data written to the storage will remain there until you remove it or the server stops.

Note: You can set any serializable object as value in the storage

Setting data on the server

Set the generic type that you want to store (in this case string)


Getting data from the server

conn.controller('chat').storageGet('color', function(data){console.log(data)});

Removing data on the server


Clear the storage


results matching ""

    No results matching ""