Closed uncle-ara closed 2 years ago
Greetings. Tell me please.
Webview (cef) rpc.callServer('TEST', 13).then((response) => { console.log('=> SUCCESS: ', response) })
rpc.callServer('TEST', 13).then((response) => { console.log('=> SUCCESS: ', response) })
Server side rpc.register('TEST', (num: number) => num + 2)
rpc.register('TEST', (num: number) => num + 2)
In the console outputs => SUCCESS: undefined RPC can't send data from webview to the server?
Greetings. Tell me please.
Webview (cef)
rpc.callServer('TEST', 13).then((response) => { console.log('=> SUCCESS: ', response) })
Server side
rpc.register('TEST', (num: number) => num + 2)
In the console outputs => SUCCESS: undefined RPC can't send data from webview to the server?