Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudgaming/rpc

Package Overview
Dependencies
Maintainers
2
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudgaming/rpc - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

5

dist/Client.d.ts

@@ -33,4 +33,9 @@ import { RpcClientObject, FunctionName, FunctionPayload, FunctionResult } from './types';

private generateSessionId;
/**
* 设置 sessionId;仅当在恢复重连会话时应该设置,断开后会自动重新生成
* @param id 新的 sessionId
*/
setSessionId(id: string): void;
}
export {};
//# sourceMappingURL=Client.d.ts.map

13

dist/Client.js

@@ -281,5 +281,14 @@ "use strict";

generateSessionId() {
this.sessionId = nanoid.nanoid(32);
const newId = nanoid.nanoid(32);
debug('created new sessionId', newId);
this.setSessionId(newId);
}
/**
* 设置 sessionId;仅当在恢复重连会话时应该设置,断开后会自动重新生成
* @param id 新的 sessionId
*/
setSessionId(id) {
this.sessionId = id;
this.endpoint = this.baseEndpoint + '?sessionId=' + this.sessionId + (this.type ? `&type=${this.type}` : '');
debug('created new sessionId', this.sessionId);
debug('new sessionId set', id);
}

@@ -286,0 +295,0 @@ }

2

package.json
{
"name": "@cloudgaming/rpc",
"version": "1.11.0",
"version": "1.11.1",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "type": "commonjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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