27.2.1.2 Pass username and password to the Hub class
To use SignalR, username and password are needed for authentication. Password is encrypted by AES and the key is User Name + "w6*U'3]H~Bn^ji9VFR$6tfc3ws7xmHt5".
.NET
string UserName = "admin";
string Password = "";
string token = Security.EncryptAES(Password, UserName);
tagDataHubProxy["waUserName"] = "admin";
tagDataHubProxy["waCommToken"] = token;
JavaScript
tagDataHubProxy.state.waUserName = "admin";
tagDataHubProxy.state.waCommToken = "37A0EAAF2631013428C2F312AA2FBFAB89DBE658B3BD4951833115365BD7E0C4";