1 | /// <reference types="node" />
|
2 | import * as http from 'http';
|
3 | import { MessagingContribution } from '../../node/messaging/messaging-contribution';
|
4 | import { ElectronTokenValidator } from './electron-token-validator';
|
5 | /**
|
6 | * Override the browser MessagingContribution class to refuse connections that do not include a specific token.
|
7 | * @deprecated since 1.8.0
|
8 | */
|
9 | export declare class ElectronMessagingContribution extends MessagingContribution {
|
10 | protected readonly tokenValidator: ElectronTokenValidator;
|
11 | /**
|
12 | * Only allow token-bearers.
|
13 | */
|
14 | protected allowConnect(request: http.IncomingMessage): Promise<boolean>;
|
15 | }
|
16 | //# sourceMappingURL=electron-token-messaging-contribution.d.ts.map |
\ | No newline at end of file |