cockpit.js

cockpit.js — Basic cockpit API to interact with the system

Spawning Processes

TODO

Raw Channels

At a low level Cockpit communicates with the system via messages passed through various channels. These are usually exposed via higher level APIs, such as the cockpit.spawn() function. It is rare to use raw channels directly.

cockpit.channel()

 channel = cockpit.channel(options);

This function creates a new channel for communication with the system. It returns a new Channel object. The options argument is a plain object. Certain options are required.

Channel objects

 Channel