As JSON is a language-independent data format it is the ideal format to communicate across nodes or even different blockchains.
A test client for the websocket is available on: http://coin.codeb.io/websocket.aspx
Our web socket examples will always refer to the JSON web service API to create sample JSON Messages!
With the function EncryptedPasswordJSONToken you can encrypt the password for your server hosted key with the public key of the server. The resulting package can be send via the websocket to the server to unlock your key. The result package is a base64 encoded JSON-WT AuthToken which can be decoded via https://coin.codeb.io/json.asmx?op=DecodeJWT or https://jwt.io/
The function CreateSimpleCommand can be used to create command JSON. This can be used as a template add more parameter or send as it is to the websocket.
The function comes with two optional parameter OptionalAuthToken and OptionalPassword. If you created already a JSON-WT you can enter it in OptionalAuthToken.
In case you need to unlock the server key you can leave OptionalAuthToken empty and enter your password. The resulting token will unlock your server hosted key, fill the OptionalAuthToken field and return the complete package.