0.2.11 • Published 3 years ago

@scalecube/rsocket-ws-gateway v0.2.11

Weekly downloads
298
License
MIT
Repository
-
Last release
3 years ago

rsocket-websocket-gateway

This package provides gateway implementation for NodeJS based on rsocket websocket

API

interface Gateway {
  constructor(options: {port: number});
  start: (options: { serviceCall: ServiceCall }) => void;
  stop: () => void;
}

Usage

import { Microservices, ASYNC_MODEL_TYPES } from '@scalecube/scalecube-microservice';
import { Gateway } from '@scalecube/rsocket-ws-gateway';

class ServiceA {
  public method1() {
    return Promise.resolve({ id: 1 });
  }
}
const definition = {
  serviceName: 'serviceA',
  methods: {
    method1: { asyncModel: ASYNC_MODEL_TYPES.REQUEST_RESPONSE },
  },
};
const gateway = new Gateway({ port: 3000 });
const ms = Microservices.create({
  services: [{ definition, reference: new ServiceA() }],
  gateway,
});
0.2.11

4 years ago

0.2.9

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.2-test.0

5 years ago

0.2.3-test.0

5 years ago

0.2.0

5 years ago

0.0.3-next.21

5 years ago

0.0.3-next.20

5 years ago

0.0.3-next.19

5 years ago

0.0.3-next.18

6 years ago

0.0.3-next.17

6 years ago

0.0.3-next.16

6 years ago

0.0.3-next.15

6 years ago

0.0.3-next.14

6 years ago

0.0.3-next.13

6 years ago

0.0.3-next.12

6 years ago

0.0.3-next.11

6 years ago

0.0.3-next.10

6 years ago

0.0.3-next.9

6 years ago

0.0.3-next.8

6 years ago

0.0.3-next.7

6 years ago

0.0.3-next.6

6 years ago

0.0.3-next.5

6 years ago

0.0.3-next.4

6 years ago

0.0.3-next.3

6 years ago

0.0.3-next.2

6 years ago

0.0.3-next.1

6 years ago

0.0.3-next.0

6 years ago

0.0.2-next.2

6 years ago

0.0.2-next.1

6 years ago

0.0.2-next.0

6 years ago

0.0.2-alpha.9

6 years ago

0.0.2-alpha.8

6 years ago

0.0.2-alpha.7

6 years ago

0.0.2-alpha.6

6 years ago

0.0.2-alpha.5

6 years ago

0.0.2-alpha.4

6 years ago

0.0.2-alpha.3

6 years ago

0.0.2-alpha.2

6 years ago

0.0.2-alpha.1

6 years ago

0.0.2-alpha.0

6 years ago

0.0.1

6 years ago