Socket
Socket
Sign inDemoInstall

@push-rpc/core

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@push-rpc/core - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

4

package.json
{
"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)
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc