import CDPSession from 'chrome-remote-interface-extra/lib/connection/CDPSession.js'CDPSession
Extends:
Constructor Summary
| Public Constructor | ||
| public |
constructor(connection: CRIConnection | Chrome | Object, targetType: string, sessionId: string) |
|
Member Summary
| Public Members | ||
| public get |
Get the actual event that is emitted when the connection has closed |
|
| Private Members | ||
| private |
|
|
| private |
_connection: CRIConnection | Chrome | Object |
|
| private |
|
|
| private |
|
|
Method Summary
| Public Methods | ||
| public |
createSession(targetInfo: Object): Promise<CDPSession> |
|
| public |
Detaches the cdpSession from the target. |
|
| public |
|
|
| public |
|
|
| Private Methods | ||
| private |
|
|
| private |
_onMessage(object: {id: ?number, method: string, params: Object, error: {message: string, data: *}, result: *}) |
|
Public Constructors
public constructor(connection: CRIConnection | Chrome | Object, targetType: string, sessionId: string) source
Params:
| Name | Type | Attribute | Description |
| connection | CRIConnection | Chrome | Object | ||
| targetType | string | ||
| sessionId | string |
Public Members
public get $$disconnectEvent: string: * source
Get the actual event that is emitted when the connection has closed
Private Members
private _connection: CRIConnection | Chrome | Object source
Public Methods
public createSession(targetInfo: Object): Promise<CDPSession> source
Params:
| Name | Type | Attribute | Description |
| targetInfo | Object |
public async detach(): Promise<void> source
Detaches the cdpSession from the target. Once detached, the cdpSession object won't emit any events and can't be used to send messages
