AndroidSocket
Added in: v1.9AndroidSocket is a way to communicate with a process launched on the AndroidDevice. Use androidDevice.open() to open a socket.
Methods
androidSocket.close()
Added in: v1.9 asyncCloses the socket.
androidSocket.write()
Added in: v1.9 asyncWrites some data to the socket.
Arguments
Events
androidSocket.on('close')
Added in: v1.9Emitted when the socket is closed.
Event data
void
androidSocket.on('data')
Added in: v1.9Emitted when data is available to read from the socket.
Event data
Buffer