![]() |
![]() |
![]() |
Cockpit Guide | ![]() |
---|
cockpit.jscockpit.js — Basic cockpit API to interact with the system |
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.
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.