import EventEmitter from './EventEmitter'; /** * A proxy that can be used to invoke methods server-side. * @class */ export default class HubProxy extends EventEmitter { private _state; private _client; private _hubName; private _logger; /** * Initializes the proxy given the current client and the hub that the client is connected to. * @param {Client} client The current HubClient that is initialized. * @param {string} hubName The name of the hub that the user wishes to generate a proxy for. * @constructor */ constructor(client: any, hubName: string, log?: boolean); /** * Invokes a server hub method with the given arguments. * @param {string} methodName The name of the server hub method * @param {Object} args The arguments to pass into the server hub method. * @returns {*} The return statement invokes the send method, which sends the information the server needs to invoke the correct method. * @function */ invoke(methodName: string, ...args: Array): Promise; } //# sourceMappingURL=HubProxy.d.ts.map