Hashlink


decode

Type: Function
Return: HashlinkResult
Description: Convert an encoded hashlink into a decoded object

var hashlink = "arlnk://F5fPxdTq8eJeuqSVejGmq4b70iWKGh24K0yiPJVOpciNTNcRlHn6+Hj0bfk=";
var obj = Hashlink.decode(hashlink);
print(obj.name);

encode

Type: Function
Return: string
Description: Convert a decoded hashlink object into an encoded hashlink

var obj = { ip: "127.0.0.1", port: 2468, name: "my test room" };
var hashlink = Hashlink.encode(obj);
print(hashlink);

Last edited Dec 5, 2012 at 4:43 PM by oobenoob, version 1