webrtc: wip connectRPCObject

This commit is contained in:
Koushik Dutta
2025-08-28 11:31:37 -07:00
parent 442e8d53f7
commit 9de2b480ff
18 changed files with 207 additions and 205 deletions

View File

@@ -35,7 +35,7 @@ export function createRpcSerializer(options: {
rpcPeer.kill('connection closed.');
}
const sendMessage = (message: any, reject: (e: Error) => void, serializationContext: any,) => {
const sendMessage = (message: any, reject?: (e: Error) => void, serializationContext?: any) => {
if (!connected) {
reject?.(new Error('peer disconnected'));
return;