UNPKG

703 BTypeScriptView Raw
1/// <reference types="node" />
2import * as http from 'http';
3import { MessagingContribution } from '../../node/messaging/messaging-contribution';
4import { 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 */
9export 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