add hub server methods

This commit is contained in:
chsakell
2016-10-03 09:24:41 +03:00
parent b0040ac178
commit ac92ee2d30
5 changed files with 32 additions and 4 deletions

View File

@@ -4,7 +4,8 @@ export interface FeedSignalR extends SignalR {
}
export interface FeedProxy {
client: FeedClient
client: FeedClient;
server: FeedServer;
}
export interface FeedClient {
@@ -15,6 +16,10 @@ export interface FeedClient {
messageReceived: (message: string) => void;
}
export interface FeedServer {
subscribe(matchId: number) : void;
}
export enum ConnectionState {
Connected = 1,
Disconnected = 2,