Very rough go at connecting to socket and rendering console data for server

This commit is contained in:
Dane Everitt 2018-07-20 23:45:07 -07:00
parent 784c73becd
commit 8db9d9bbee
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
9 changed files with 311 additions and 114 deletions

View file

@ -131,6 +131,16 @@ class Node extends Model implements CleansAttributes, ValidableContract
'maintenance_mode' => false,
];
/**
* Get the connection address to use when making calls to this node.
*
* @return string
*/
public function getConnectionAddress(): string
{
return sprintf('%s://%s:%s', $this->scheme, $this->fqdn, $this->daemonListen);
}
/**
* Returns the configuration in JSON format.
*