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

@scalecube/transport-browser

Package Overview
Dependencies
Maintainers
7
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scalecube/transport-browser - npm Package Compare versions

Comparing version 0.2.10-snapshot.feature-bugfix-api-missing-rxjs.1596043949 to 0.2.10-snapshot.feature-bugfix-createGatewayProxy-unsubscribe-streams.1601511838

cjs/connection.d.ts

9

cjs/index.d.ts

@@ -1,7 +0,2 @@

export declare const transport: {
clientTransport: {
start: (options: import("@scalecube/api/lib/transport").ClientTransportOptions) => Promise<import("@scalecube/api/lib/transport").RequestHandler>;
destroy: import("@scalecube/api/lib/transport").TDestroy;
};
serverTransport: import("@scalecube/api/lib/transport").ServerTransport;
};
import { TransportApi } from '@scalecube/api';
export declare const transport: TransportApi.Transport;

@@ -1,7 +0,2 @@

export declare const transport: {
clientTransport: {
start: (options: import("@scalecube/api/lib/transport").ClientTransportOptions) => Promise<import("@scalecube/api/lib/transport").RequestHandler>;
destroy: import("@scalecube/api/lib/transport").TDestroy;
};
serverTransport: import("@scalecube/api/lib/transport").ServerTransport;
};
import { TransportApi } from '@scalecube/api';
export declare const transport: TransportApi.Transport;

@@ -1,6 +0,22 @@

import { setupServer, setupClient } from '@scalecube/rsocket-adapter';
import { clientProvider, serverProvider } from './Provider/Provider';
export var transport = {
clientTransport: setupClient(clientProvider),
serverTransport: setupServer(serverProvider),
};
import { createClient, createServer } from './connection';
import { getFullAddress } from '@scalecube/utils';
function createTransport() {
var client = createClient();
return {
clientTransport: {
start: function (options) {
return Promise.resolve({
requestResponse: function (message) { return client.requestResponse(getFullAddress(options.remoteAddress), message); },
requestStream: function (message) { return client.requestStream(getFullAddress(options.remoteAddress), message); },
});
},
destroy: function (options) {
client.shutdown(options.address);
},
},
serverTransport: function (options) {
return createServer(getFullAddress(options.localAddress), options.serviceCall);
},
};
}
export var transport = createTransport();
{
"name": "@scalecube/transport-browser",
"version": "0.2.10-snapshot.feature-bugfix-api-missing-rxjs.1596043949",
"version": "0.2.10-snapshot.feature-bugfix-createGatewayProxy-unsubscribe-streams.1601511838",
"private": false,

@@ -34,10 +34,11 @@ "main": "cjs/index.js",

"dependencies": {
"@scalecube/api": "^0.2.10-snapshot.feature-bugfix-api-missing-rxjs.1596043949",
"@scalecube/rsocket-adapter": "^0.2.10-snapshot.feature-bugfix-api-missing-rxjs.1596043949",
"@scalecube/utils": "^0.2.10-snapshot.feature-bugfix-api-missing-rxjs.1596043949",
"@scalecube/api": "^0.2.10-snapshot.feature-bugfix-createGatewayProxy-unsubscribe-streams.1601511838",
"@scalecube/rsocket-adapter": "^0.2.10-snapshot.feature-bugfix-createGatewayProxy-unsubscribe-streams.1601511838",
"@scalecube/utils": "^0.2.10-snapshot.feature-bugfix-createGatewayProxy-unsubscribe-streams.1601511838",
"rsocket-core": "^0.0.16",
"rsocket-events-client": "^0.0.22",
"rsocket-events-server": "^0.0.22"
"rsocket-events-server": "^0.0.22",
"rxjs": "^6.4.0"
},
"gitHead": "02d2e49f02c790f8a71d5df2e08cb8e7eff29be8"
"gitHead": "1750715800d01cd61336c95439473ccdcdaa465a"
}

Sorry, the diff of this file is too big to display

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