This commit is contained in:
Egor Aristov 2025-11-16 09:00:57 +03:00
parent 768eaca60a
commit 7f0d7047e9
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F
2 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,7 @@ func main() {
if err != nil { if err != nil {
log.Panic(err) log.Panic(err)
} }
log.Printf("remote call result from ts = %v", res) log.Printf("call result go->ts = %v", res)
if err := ipc.Wait(1 * time.Second); err != nil { if err := ipc.Wait(1 * time.Second); err != nil {
log.Panic(err) log.Panic(err)

View File

@ -20,7 +20,11 @@ async function main() {
await ipc.start(); await ipc.start();
console.log(`remote call result from go = ${await remoteApi.Div(10, 2)}`); console.log(`call result ts->go Div = ${await remoteApi.Div(10, 2)}`);
const data1 = new Uint8Array().fill(0b10101010, 0, 100);
const data2 = new Uint8Array().fill(0b11110000, 0, 100);
console.log(`call result ts->go XorData = ${await remoteApi.XorData(data1, data2)}`);
await ipc.wait(); await ipc.wait();
} }