Comparing version 2.0.15 to 2.0.16
(function() { | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, WaitBootCompleteCommand, debug; | ||
var ClearCommand, Client, Connection, ForwardCommand, FrameBufferCommand, GetDevicePathCommand, GetFeaturesCommand, GetPackagesCommand, GetPropertiesCommand, GetSerialNoCommand, GetStateCommand, HostDevicesCommand, HostDevicesWithPathsCommand, HostKillCommand, HostTrackDevicesCommand, HostTransportCommand, HostVersionCommand, InstallCommand, IsInstalledCommand, ListForwardsCommand, LocalCommand, LogCommand, Logcat, LogcatCommand, Monkey, MonkeyCommand, Parser, ProcStat, Promise, RebootCommand, RemountCommand, ScreencapCommand, ShellCommand, StartActivityCommand, StartServiceCommand, Sync, SyncCommand, TcpCommand, TcpUsbServer, TrackJdwpCommand, UninstallCommand, WaitBootCompleteCommand, debug; | ||
@@ -46,2 +46,4 @@ Monkey = require('adbkit-monkey'); | ||
LocalCommand = require('./command/host-transport/local'); | ||
LogcatCommand = require('./command/host-transport/logcat'); | ||
@@ -247,2 +249,8 @@ | ||
Client.prototype.openLocal = function(serial, path, callback) { | ||
return this.transport(serial).then(function(transport) { | ||
return new LocalCommand(transport).execute(path); | ||
}).nodeify(callback); | ||
}; | ||
Client.prototype.openLog = function(serial, name, callback) { | ||
@@ -249,0 +257,0 @@ return this.transport(serial).then(function(transport) { |
{ | ||
"name": "adbkit", | ||
"version": "2.0.15", | ||
"version": "2.0.16", | ||
"description": "A pure Node.js client for the Android Debug Bridge.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -448,2 +448,14 @@ # adbkit | ||
#### client.openLocal(serial, path[, callback]) | ||
Opens a direct connection to a unix domain socket in the given path. | ||
* **serial** The serial number of the device. Corresponds to the device ID in `client.listDevices()`. | ||
* **path** The path to the socket. Prefixed with `'localfilesystem:'` by default, include another prefix (e.g. `'localabstract:'`) in the path to override. | ||
* **callback(err, conn)** Optional. Use this or the returned `Promise`. | ||
- **err** `null` when successful, `Error` otherwise. | ||
- **conn** The connection (i.e. [`net.Socket`][node-net]). Read and write as you please. Call `conn.end()` to end the connection. | ||
* Returns: `Promise` | ||
* Resolves with: `conn` (see callback) | ||
#### client.openLog(serial, name[, callback]) | ||
@@ -450,0 +462,0 @@ |
186582
55
3591
915