mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
27 lines
563 B
Markdown
27 lines
563 B
Markdown
![]() |
# class: AndroidSocket
|
||
|
* langs: js
|
||
|
|
||
|
[AndroidSocket] is a way to communicate with a process launched on the [AndroidDevice]. Use [`method: AndroidDevice.open`] to open a socket.
|
||
|
|
||
|
## event: AndroidSocket.close
|
||
|
|
||
|
Emitted when the socket is closed.
|
||
|
|
||
|
## event: AndroidSocket.data
|
||
|
- type: <[Buffer]>
|
||
|
|
||
|
Emitted when data is available to read from the socket.
|
||
|
|
||
|
## async method: AndroidSocket.close
|
||
|
|
||
|
Closes the socket.
|
||
|
|
||
|
## async method: AndroidSocket.write
|
||
|
|
||
|
Writes some [`param: data`] to the socket.
|
||
|
|
||
|
### param: AndroidSocket.write.data
|
||
|
- `data` <[Buffer]>
|
||
|
|
||
|
Data to write.
|