# @types/signalr-no-jquery

> TypeScript definitions for signalr-no-jquery

Latest version **0.1.6** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/signalr-no-jquery
pnpm add @types/signalr-no-jquery
yarn add @types/signalr-no-jquery
bun add @types/signalr-no-jquery
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.6 |
| Published | 2023-11-07 |
| First published | 2017-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/signalr-no-jquery
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signalr-no-jquery
- npm.io page: https://npm.io/package/@types/signalr-no-jquery

## Recent versions

- 0.1.6 (latest) — 2023-11-07
- 0.1.3 (ts4.0) — 2021-07-06
- 0.1.1 (ts2.2) — 2019-08-26
- 0.1.5 — 2023-10-18
- 0.1.4 — 2023-09-25
- 0.1.2 — 2020-08-28
- 0.1.0 — 2017-09-09

## README

# Installation
> `npm install --save @types/signalr-no-jquery`

# Summary
This package contains type definitions for signalr-no-jquery (https://github.com/DVLP/signalr-no-jquery/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signalr-no-jquery.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/signalr-no-jquery/index.d.ts)
````ts
export function hubConnection(url?: string, options?: Options): Connection;

export function signalR(url?: string, qs?: any, logging?: any): any;

export interface Connection {
    id: string;
    proxies: { [hubName: string]: any };
    transport: {
        name: string;
        supportsKeepAlive: SupportsKeepAliveHandler;
    };

    /**
     * Creates a new proxy object for the given hub connection that can be used to invoke
     * methods on server hubs and handle client method invocation requests from the server.
     *
     * @param hubName The name of the hub on the server to create the proxy for.
     */
    createHubProxy(hubName: string): Proxy;

    start(options?: any, callback?: () => void): any;

    stop(async?: boolean, notifyServer?: boolean): void;

    reconnecting(callback: () => void): void;

    disconnected(callback: () => void): void;
}

export interface Proxy {
    state: any;
    connection: Connection;
    hubName: string;
    init(connection: Connection, hubName: string): void;
    hasSubscriptions(): boolean;
    /**
     * Wires up a callback to be invoked when a invocation request is received from the server hub.
     *
     * @param eventName The name of the hub event to register the callback for.
     * @param callback The callback to be invoked.
     */
    on(eventName: string, callback?: (...msg: any[]) => void): Proxy;
    /**
     * Removes the callback invocation request from the server hub for the given event name.
     *
     * @param eventName The name of the hub event to unregister the callback for.
     * @param callback The callback to be invoked.
     */
    off(eventName: string, callback?: (...msg: any[]) => void): Proxy;
    /**
     * Invokes a server hub method with the given arguments.
     *
     * @param methodName The name of the server hub method.
     */
    invoke(methodName: string, ...args: any[]): Promise<any>;
}

export interface Options {
    qs?: string | undefined;
    logging?: boolean | undefined;
    useDefaultPath?: boolean | undefined;
}

export type SupportsKeepAliveHandler = () => boolean;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Martin Gjoshevski](https://github.com/gjoshevski).

---
_Source: https://npm.io/package/@types/signalr-no-jquery · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
