@bfchain/bnrtc2-client-typings
Advanced tools
Comparing version 0.0.1-alpha.5 to 0.0.1-alpha.6
@@ -15,7 +15,2 @@ /// <reference lib="dom" /> | ||
} | ||
interface ResultData { | ||
id: number; | ||
code: import('./').RESULT_CODE; | ||
backPressureInfo: BackPressureInfo; | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
@@ -27,6 +22,2 @@ interface Bnrtc2Data { | ||
} | ||
type BackPressureInfo = { | ||
ProcessedMsgId: number; | ||
AvailRecvSize: number; | ||
}; | ||
interface Channel extends WebSocket { | ||
@@ -33,0 +24,0 @@ } |
@@ -16,8 +16,11 @@ export declare const enum READY_STATE { | ||
} | ||
export declare const enum DATA_TYPE { | ||
export declare const enum SEND_DATA_TYPE { | ||
DATA = 0, | ||
BACKPRESSURE = 1, | ||
BINDDPORT = 2, | ||
UNBINDDPORT = 3 | ||
BINDDPORT = 1, | ||
UNBINDDPORT = 2 | ||
} | ||
export declare const enum RECEIVE_DATA_TYPE { | ||
RECEIVE_DATA = 0, | ||
SEND_DATA = 1 | ||
} | ||
//# sourceMappingURL=const.d.ts.map |
@@ -15,7 +15,2 @@ /// <reference lib="dom" /> | ||
} | ||
interface ResultData { | ||
id: number; | ||
code: import('./').RESULT_CODE; | ||
backPressureInfo: BackPressureInfo; | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
@@ -27,6 +22,2 @@ interface Bnrtc2Data { | ||
} | ||
type BackPressureInfo = { | ||
ProcessedMsgId: number; | ||
AvailRecvSize: number; | ||
}; | ||
interface Channel extends WebSocket { | ||
@@ -33,0 +24,0 @@ } |
@@ -16,7 +16,10 @@ export declare const enum READY_STATE { | ||
} | ||
export declare const enum DATA_TYPE { | ||
export declare const enum SEND_DATA_TYPE { | ||
DATA = 0, | ||
BACKPRESSURE = 1, | ||
BINDDPORT = 2, | ||
UNBINDDPORT = 3 | ||
BINDDPORT = 1, | ||
UNBINDDPORT = 2 | ||
} | ||
export declare const enum RECEIVE_DATA_TYPE { | ||
RECEIVE_DATA = 0, | ||
SEND_DATA = 1 | ||
} |
@@ -15,7 +15,2 @@ /// <reference lib="dom" /> | ||
} | ||
interface ResultData { | ||
id: number; | ||
code: import('./').RESULT_CODE; | ||
backPressureInfo: BackPressureInfo; | ||
} | ||
type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; | ||
@@ -27,6 +22,2 @@ interface Bnrtc2Data { | ||
} | ||
type BackPressureInfo = { | ||
ProcessedMsgId: number; | ||
AvailRecvSize: number; | ||
}; | ||
interface Channel extends WebSocket { | ||
@@ -33,0 +24,0 @@ } |
@@ -16,8 +16,11 @@ export declare const enum READY_STATE { | ||
} | ||
export declare const enum DATA_TYPE { | ||
export declare const enum SEND_DATA_TYPE { | ||
DATA = 0, | ||
BACKPRESSURE = 1, | ||
BINDDPORT = 2, | ||
UNBINDDPORT = 3 | ||
BINDDPORT = 1, | ||
UNBINDDPORT = 2 | ||
} | ||
export declare const enum RECEIVE_DATA_TYPE { | ||
RECEIVE_DATA = 0, | ||
SEND_DATA = 1 | ||
} | ||
//# sourceMappingURL=const.d.ts.map |
{ | ||
"name": "@bfchain/bnrtc2-client-typings", | ||
"version": "0.0.1-alpha.5", | ||
"version": "0.0.1-alpha.6", | ||
"main": "cjs/index.js", | ||
@@ -9,4 +9,4 @@ "type": "cjs/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer": "^0.0.1-alpha.5" | ||
"@bfchain/bnrtc2-buffer": "^0.0.1-alpha.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
11182
222