1.0.17 • Published 7 months ago

graphql-amqp-connection-manager-subscriptions v1.0.17

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

graphql-amqp-connection-manager-subscriptions

Implements the PubSubEngine Interface from the graphql-subscriptions package. It allows you to connect your subscriptions manager to the PubSub mechanism and reuse the existing amqp-connection-manager connection.

This package is influenced by graphql-amqp-subscriptions.

npm Version npm Downloads

Basic usage

import { AMQPConnectionManagerPubSub } from 'graphql-amqp-connection-manager-subscriptions';
import { connect } from 'amqp-connection-manager';

const connection = connect('amqp://guest:guest@localhost:5672?heartbeat=20');
const pubsub = new AMQPConnectionManagerPubSub({
  // Required
  connection,

  // Optional
  exchange: {
    name: 'exchange',
    type: 'topic',
    options: {
      durable: false,
      autoDelete: true,
    },
  },

  // Optional
  queue: {
    name: 'queue'
    options: {
      exclusive: true,
      durable: true,
      autoDelete: true,
    },
  },
});

Debug

This package uses Debug. To show the logs run your app with the environment variable DEBUG="AMQPConnectionManagerPubSub"

1.0.17

7 months ago

1.0.16

7 months ago

1.0.15

7 months ago

1.0.14

7 months ago

1.0.13

7 months ago

1.0.12

7 months ago

1.0.11

7 months ago

1.0.10

7 months ago

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

7 months ago

1.0.4

7 months ago

1.0.3

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago