mirror of
https://github.com/chsakell/aspnet-core-signalr-angular.git
synced 2025-12-23 01:37:59 +00:00
added Data, Models, EntityFramework
This commit is contained in:
20
app/shared/interfaces.ts
Normal file
20
app/shared/interfaces.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
/* SignalR related interfaces */
|
||||
export interface FeedSignalR extends SignalR {
|
||||
broadcaster: FeedProxy
|
||||
}
|
||||
|
||||
export interface FeedProxy {
|
||||
client: FeedClient
|
||||
}
|
||||
|
||||
export interface FeedClient {
|
||||
userConnected: (user: any) => void;
|
||||
userDisconnected: (id: string) => void;
|
||||
messageReceived: (message: string) => void;
|
||||
}
|
||||
|
||||
export enum ConnectionState {
|
||||
Connected = 1,
|
||||
Disconnected = 2,
|
||||
Error = 3
|
||||
}
|
||||
Reference in New Issue
Block a user