@testrtc/watchrtc-sdk
Advanced tools
Comparing version
@@ -10,3 +10,3 @@ import "./types"; | ||
*/ | ||
export declare const init: (watchrtcConfig?: IWatchRTCConfiguration | undefined, services?: IWatchRTCInitServices | undefined) => void; | ||
export declare const init: (watchrtcConfig?: IWatchRTCConfiguration, services?: IWatchRTCInitServices) => void; | ||
/** | ||
@@ -28,3 +28,3 @@ * You also can use watchRTC.setConfig function to set watchRTC configuration after calling init() | ||
*/ | ||
export declare const setUserRating: (rating: Rating, comment?: string | undefined) => void; | ||
export declare const setUserRating: (rating: Rating, comment?: string) => void; | ||
/** | ||
@@ -60,3 +60,3 @@ * Add keys for peer session | ||
export declare const addStatsListener: (listener: IStatsCallback) => void; | ||
export declare const persistentEnd: (nailUpCallEnd?: boolean | undefined) => void; | ||
export declare const persistentEnd: (nailUpCallEnd?: boolean) => void; | ||
export declare const persistentStart: (roomId: string, peerId: string) => void; | ||
@@ -63,0 +63,0 @@ export declare const addStateListener: (listener: StateListener | null) => void; |
@@ -47,4 +47,4 @@ export interface RTCPeerConnectionInformation { | ||
} | ||
export declare type Rating = 1 | 2 | 3 | 4 | 5; | ||
export declare type EventType = "global" | "local" | "log"; | ||
export type Rating = 1 | 2 | 3 | 4 | 5; | ||
export type EventType = "global" | "local" | "log"; | ||
export interface IEvent { | ||
@@ -75,3 +75,3 @@ name: string; | ||
} | ||
export declare type ISocketTrace = (params: ISocketTraceParams) => void; | ||
export type ISocketTrace = (params: ISocketTraceParams) => void; | ||
export interface ISocketConnectOptions { | ||
@@ -107,3 +107,3 @@ url: string; | ||
} | ||
export declare type StateListener = (event: IStateEvent) => any; | ||
export type StateListener = (event: IStateEvent) => any; | ||
export {}; |
@@ -10,3 +10,3 @@ import { IEvent, IStatsCallback, IWatchRTCConfiguration, IWatchRTCInitServices, Rating, StateListener } from "./interfaces"; | ||
*/ | ||
export declare const initSDK: (watchrtc: Omit<IWatchRTCConfiguration, "allowBrowserLogCollection">, prefixesToWrap: string[], services?: IWatchRTCInitServices | undefined) => void; | ||
export declare const initSDK: (watchrtc: Omit<IWatchRTCConfiguration, "allowBrowserLogCollection">, prefixesToWrap: string[], services?: IWatchRTCInitServices) => void; | ||
export declare const setConfig: (newWatchrtcConfig: Omit<IWatchRTCConfiguration, "collectionInterval" | "allowBrowserLogCollection">) => void; | ||
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
export declare const setUserRating: (rating: Rating, ratingComment?: string | undefined) => Promise<{ | ||
export declare const setUserRating: (rating: Rating, ratingComment?: string) => Promise<{ | ||
error?: string; | ||
@@ -36,3 +36,3 @@ }>; | ||
export declare const registerStateListener: (listener: StateListener | null) => void; | ||
export declare const persistentEnd: (nailUpCallEnd?: boolean | undefined) => void; | ||
export declare const persistentEnd: (nailUpCallEnd?: boolean) => void; | ||
export declare const persistentStart: (roomId: string, peerId: string) => void; |
export declare const getTransportFromStats: (id: string, reports: any) => any; | ||
export declare const getStreamsFromStats: (id: string, previous: any, current: any, mappedTrack: any) => any; |
@@ -0,0 +0,0 @@ export {}; |
import { IEvent, ISocketTrace, IWatchRTCConfiguration, IWatchrtcIdentifiers, Rating, RTCPeerConnectionInformation } from "./interfaces"; | ||
declare type ConfigLogLevel = Required<IWatchRTCConfiguration>["logLevel"]; | ||
declare type LogLevel = Exclude<ConfigLogLevel, "silent">; | ||
type ConfigLogLevel = Required<IWatchRTCConfiguration>["logLevel"]; | ||
type LogLevel = Exclude<ConfigLogLevel, "silent">; | ||
export declare const logPrefix: (level?: LogLevel) => string[]; | ||
export declare const getSdkLogger: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object | undefined) => void; | ||
export declare const getSdkLogWithoutTrace: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object | undefined) => void; | ||
export declare const getSdkLogger: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object) => void; | ||
export declare const getSdkLogWithoutTrace: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object) => void; | ||
export declare const deltaCompression: (oldStats: any, newStats: any) => any; | ||
@@ -14,3 +14,3 @@ export declare const mangleChromeStats: (pc: any, response: any) => any; | ||
}; | ||
export declare const getConnectionData: (type: "ws" | "http", key: string, proxyURL?: string | undefined) => { | ||
export declare const getConnectionData: (type: "ws" | "http", key: string, proxyURL?: string) => { | ||
url: string; | ||
@@ -17,0 +17,0 @@ key: string; |
@@ -1,2 +0,2 @@ | ||
declare const _default: "1.38.0-beta.5"; | ||
declare const _default: "1.38.0-beta.6"; | ||
export default _default; |
@@ -0,0 +0,0 @@ import { IHttpService } from "./interfaces"; |
@@ -0,0 +0,0 @@ import { ISocketService, ISocketTrace, ISocketConnectOptions } from "./interfaces"; |
{ | ||
"name": "@testrtc/watchrtc-sdk", | ||
"version": "1.38.0-beta.5", | ||
"version": "1.38.0-beta.6", | ||
"description": "Monitor your WebRTC application by collecting WebRTC statistics from end users", | ||
@@ -19,7 +19,15 @@ "main": "lib/index.js", | ||
}, | ||
"dependencies": {}, | ||
"dependencies": { | ||
"@typescript-eslint/eslint-plugin": "^6.9.0" | ||
}, | ||
"devDependencies": { | ||
"@typescript-eslint/parser": "^6.9.0", | ||
"eslint": "^7.8.0", | ||
"eslint-config-prettier": "^8.1.0", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"eslint-plugin-react-hooks": "^4.3.0", | ||
"ts-loader": "8.0.16", | ||
"typescript": "^5.2.2", | ||
"webpack": "5.21.2", | ||
"webpack-cli": "4.5.0", | ||
"ts-loader": "8.0.16" | ||
"webpack-cli": "4.5.0" | ||
}, | ||
@@ -26,0 +34,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
544054
-0.91%1
Infinity%9
200%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added