/** * @license SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Event emitted by Memorelay when it creates a MemorelayClient. */ import { MemorelayClient } from '../lib/memorelay-client'; import { RelayEvent, RelayEventOptions } from './relay-event'; export declare const MEMORELAY_CLIENT_CREATED_EVENT_TYPE = "memorelay-client-created"; /** * @see MemorelayClientCreatedEvent */ export interface MemorelayClientCreatedEventDetails { /** * The newly created MemorelayClient */ readonly memorelayClient: MemorelayClient; } /** * Event emitted by Memorelay when it creates a MemorelayClient to wrap a * connected WebSocket. This would typically be in response to a previously * emitted 'connection' event on the Memorelay instance's WebSocketServer. */ export declare class MemorelayClientCreatedEvent extends RelayEvent { static readonly type: typeof MEMORELAY_CLIENT_CREATED_EVENT_TYPE; constructor(details: MemorelayClientCreatedEventDetails, options?: RelayEventOptions); }