Hashlink

Name: decode
Type: function
Return type: HashlinkResult
Argument 1 type: string

// decode a hashlink into it's individual components

var hashlink = "arlnk://chatroom:1.2.3.4:1234|myroom";
hashlink = Hashlink.decode(hashlink);
alert(hashlink.name);

Name: encode
Type: function
Return type: string
Argument 1 type: json

// encode individual components into a hashlink

var hashlink = {
    name: "myroom",
    ip: "1.2.3.4",
    port: 1234
};

hashlink = Hashlink.encode(hashlink);
alert(hashlink);

Last edited Feb 2, 2014 at 9:51 PM by oobenoob, version 2