@bfchain/bnrtc2-client-typings
Advanced tools
Comparing version 2.0.7 to 2.0.8
@@ -6,4 +6,4 @@ /// <reference lib="dom" /> | ||
} | ||
interface Bnrtc2DwebServiceConfig { | ||
port: number; | ||
interface Bnrtc2ServiceInfo { | ||
[key: string]: any; | ||
} | ||
@@ -19,7 +19,10 @@ type RESULT_CODE = import("./const").RESULT_CODE; | ||
connectAddress(address: string): Promise<boolean>; | ||
getServerConfig(): Promise<Bnrtc2.Bnrtc2ServerConfig | undefined>; | ||
getServiceInfo(name: string): Promise<Bnrtc2.Bnrtc2ServiceInfo | undefined>; | ||
} | ||
interface Bnrtc2Client { | ||
onOpen: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
onError: import('@bfcs/util-evt').Attacher<Error>; | ||
readonly onOpen: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
readonly onClose: import('@bfcs/util-evt').StatefulAttacher<boolean>; | ||
readonly onError: import('@bfcs/util-evt').Attacher<Error>; | ||
readonly controller: Bnrtc2ControllerInterface; | ||
close(code?: number, reason?: string): void; | ||
@@ -31,4 +34,2 @@ send(address: string, dport: string, data: Bnrtc2.Bnrtc2Buffer | Uint8Array, devid?: string, src?: string): Promise<RESULT_CODE>; | ||
offData(dport: string, handler?: Bnrtc2DataHandler): Promise<RESULT_CODE>; | ||
getServerConfig(): Promise<Bnrtc2.Bnrtc2ServerConfig | undefined>; | ||
getDwebServiceConfig(): Promise<Bnrtc2.Bnrtc2DwebServiceConfig | undefined>; | ||
} | ||
@@ -35,0 +36,0 @@ type Bnrtc2DataHandler = (data: Bnrtc2Data) => void; |
{ | ||
"name": "@bfchain/bnrtc2-client-typings", | ||
"version": "2.0.7", | ||
"version": "2.0.8", | ||
"main": "./build/index.js", | ||
@@ -8,3 +8,3 @@ "types": "./build/index.d.ts", | ||
"dependencies": { | ||
"@bfchain/bnrtc2-buffer-typings": "^2.0.7", | ||
"@bfchain/bnrtc2-buffer-typings": "^2.0.8", | ||
"@bfcs/util-evt": "^0.0.1-alpha.2" | ||
@@ -11,0 +11,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4578
111