@push-rpc/core
Advanced tools
Comparing version 1.6.0 to 1.6.1
{ | ||
"name": "@push-rpc/core", | ||
"version": "1.6.0", | ||
"version": "1.6.1", | ||
"main": "dist/index.js", | ||
@@ -21,3 +21,3 @@ "types": "dist/index.d.ts", | ||
}, | ||
"gitHead": "193290f9397e577b92f9087b5a359126ddf7d02c" | ||
"gitHead": "c0d75bc93b480a01668e03dc0d1d5909d06999ca" | ||
} |
import {assert} from "chai" | ||
import {createTestClient, startTestServer} from "./testUtils" | ||
import {RpcConnectionContext} from "../src" | ||
@@ -98,2 +99,26 @@ describe("Misc", () => { | ||
}) | ||
it("websocket misses 1st message due to async init", async () => { | ||
await startTestServer( | ||
{ | ||
async hello() { | ||
return "ok" | ||
}, | ||
}, | ||
{ | ||
async createConnectionContext(): Promise<RpcConnectionContext> { | ||
await new Promise(resolve => setTimeout(resolve, 50)) | ||
return { | ||
remoteId: "remote", | ||
} | ||
}, | ||
} | ||
) | ||
const client = await createTestClient(0) | ||
const r = await client.hello() | ||
console.log(r) | ||
}) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
180846
4764