1.0.17 • Published 2 years ago

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

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago