Skip to content

Commit cce9f70

Browse files
committed
video-broadcast-support
1 parent d872b3f commit cce9f70

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ interface ConnectOptions {
5656
onInputPermissionResult?: (message: PermissionResultMessage) => void;
5757
onInputCodeData?: (codedata: CodeData) => void;
5858
onError?: (message: string) => void;
59+
onSocket?:(socket: any) => void;
5960
}
6061

6162
interface InputMessage {

src/GlobalInputMessageConnector.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,9 @@ export default class GlobalInputMessageConnector {
159159
const connectionCode = that.buildInputCodeData();
160160
options.onRegistered(connectionCode);
161161
}
162+
if (options.onSocket) {
163+
options.onSocket(that.socket);
164+
}
162165
}
163166
else {
164167
if (options.onRegisterFailed) {

0 commit comments

Comments
 (0)