-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodels.interface.ts
More file actions
30 lines (30 loc) · 840 Bytes
/
models.interface.ts
File metadata and controls
30 lines (30 loc) · 840 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Needed to construct the url
export interface ConnectionData {
name: string // Hub name
};
export interface NegotiationResponse {
ConnectionId: string,
ConnectionTimeout: number,
ConnectionToken: string, // Token required for the connection
DisconnectTimeout: number,
KeepAliveTimeout: number,
LongPollDelay: number,
ProtocolVersion: string,
TransportConnectTimeout: number,
TryWebSockets: boolean,
Url: string
};
// MessageEvent.data
export interface Message {
C?: string,
M?: MObject[],
I?: string
};
export interface MObject {
H: string, // Hub name
M: string, // Method name
A: any[], // Arguments of the method
I?: number // Sent message's index
};
export const URL_HTTP = "http://localhost:54660/signalr";
export const URL_WS = "ws://localhost:54660/signalr";