bashi-bazouk / IndividualAgent

IndividualAgent is a federated social network. Contact the owner for more information.
1 stars 0 forks source link

Create Agent URLs #6

Open bashi-bazouk opened 10 years ago

bashi-bazouk commented 10 years ago

metaweta says:

A url that when a request is made to it does the following

  • send a create agent message to the backend
  • redirects the browser to an agentui url that has a parm that is the uuid of the new agent

This is an external protocol request. For this, we incorporate a js script into the home-page of the project, which registers the "agent://" protocol to a local port of the computer.

In order for the external protocol request to be made, the project installer must include a daemon, which runs as a background process to listen on the designated port. The EPR is sent as an augmented url. Upon reception, the daemon parses any url parameters and launches the main process, which finally communicates with the remote server to establish a new agent.

This is the technique employed by Spotify with their SpotifyHelper process, which registers a startup script (on OS X, launchd process), so that the daemon runs virtually all the time.