AndroidSocket
AndroidSocket is a way to communicate with a process launched on the AndroidDevice. Use androidDevice.open() to open a socket.
Methods
close
Added in: v1.9Closes the socket.
Usage
await androidSocket.close();
Returns
write
Added in: v1.9Writes some data
to the socket.
Usage
await androidSocket.write(data);
Arguments
Returns
Events
on('close')
Added in: v1.9Emitted when the socket is closed.
Usage
androidSocket.on('close', data => {});
on('data')
Added in: v1.9Emitted when data is available to read from the socket.
Usage
androidSocket.on('data', data => {});
Event data