Websocket connection to App on App Manager
I want to connect to App on App Manager via websocket. I followed app connection steps from this forum post:
http://forum.innovaphone.com/moodle2/mod/forum/discuss.php?d=25314#p68406
$uri = "wss://IPADDRESS/DOMAIN/usersapp";
$websocket = new AppPlatform\WSClient($sourcename, $uri);
--> wenn i change "AppChallenge" to "Challenge" as in your documentation, i get requesttimeout.
if(property_exists($res,'challenge'))
{
$this->setSessionKey(hash('sha256', "users-admin:DemoUser:{$res->challenge}:DemoPassword"));
$this->setLoginMessage(new AppPlatform\Message("AppLogin", "app", "users-admin", "user", "DemoUser", "key", $this->getSessionKey()));
--> same wenn i change "AppLogin" to "Login" as in your documentation, i get requesttimeout.
$loginMsg = $this->sendMessage($this->getLoginMessage());
var_dump($loginMsg);
}
Answer that i get is as followed, see txt File:
