mirror of
https://github.com/koush/scrypted.git
synced 2026-03-04 10:23:18 +00:00
webrtc: wip connectRPCObject
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user