import { getGlobalRemote as getGlobalRemoteId } from "../internal" ; import ClientEvent from "./ClientEvent" ; /**
 * Client counter-part to GlobalServerEvent
 */ export default class ClientMessagingEvent < TArgs extends unknown [ ] = unknown [ ] > { private readonly instance : ClientEvent < TArgs > ; constructor ( name ) { this . instance = new ClientEvent ( getGlobalRemoteId ( name ) ) ; } param callback public Connect ( callback ) { this . instance . Connect ( callback ) ; } }