All Projects → sensibill → socket.io-amqp

sensibill / socket.io-amqp

Licence: LGPL-3.0 License
AMQP Adapter for Socket.io

Programming Languages

javascript
184084 projects - #8 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to socket.io-amqp

steps-google-play-deploy
No description or website provided.
Stars: ✭ 40 (+21.21%)
Mutual labels:  production-code
steps-cocoapods-install
No description or website provided.
Stars: ✭ 19 (-42.42%)
Mutual labels:  production-code
steps-git-clone
No description or website provided.
Stars: ✭ 14 (-57.58%)
Mutual labels:  production-code
steps-xcode-test
Xcode Test step
Stars: ✭ 26 (-21.21%)
Mutual labels:  production-code
steps-ios-auto-provision-appstoreconnect
No description or website provided.
Stars: ✭ 15 (-54.55%)
Mutual labels:  production-code
stepman
Step collection manager
Stars: ✭ 23 (-30.3%)
Mutual labels:  production-code
steps-fastlane
No description or website provided.
Stars: ✭ 33 (+0%)
Mutual labels:  production-code
steps-carthage
Step for building dependencies with Carthage on Bitrise
Stars: ✭ 14 (-57.58%)
Mutual labels:  production-code
bitrise-webhooks
Bitrise Webhooks processor
Stars: ✭ 59 (+78.79%)
Mutual labels:  production-code
steps-install-missing-android-tools
No description or website provided.
Stars: ✭ 14 (-57.58%)
Mutual labels:  production-code

socket.io-amqp

A Socket.IO Adapter for use with RabbitMQ and other AMQP services.

Build Status

NPM version

How to use

var io = require('socket.io')(3000);
var amqp_adapter = require('socket.io-amqp');
io.adapter(amqp_adapter('amqp://localhost'));

API

adapter(uri[, opts], [onNamespaceInitializedCallback])

uri is a string like amqp://localhost which points to your AMQP / RabbitMQ server. The amqp:// scheme is MANDATORY. If you need to use a username & password, they must be embedded in the URI.

The following options are allowed:

  • prefix: A prefix that will be applied to all queues, exchanges and messages created by socket.io-amqp.

  • queueName: The name of the rabbitmq queue to use listen in on the exchange. Must be unique. Default value is '' which means rabbitmq will auto generate a queue name for you that is unique.

  • channelSeperator: The delimiter between the prefix, the namespace name, and the room, the default is '#' for compatibility with socket.io-emitter, but if you don't use it,you should change it because # is a wildcard character in rabbitmq which means you may get cross chatter with other rooms.

  • onNamespaceInitializedCallback: This is a callback function that is called everytime sockets.io opens a new namespace. Because a new namespace requires new queues and exchanges, you can get a callback to indicate the success or failure here. This callback should be in the form of function(err, nsp), where err is the error, and nsp is the namespace. If your code needs to wait until sockets.io is fully set up and ready to go, you can use this.

  • useInputExchange option: This configures the use of 2 exchanges socket.io and socket.io-input where socket.io-input is a fanout exchange and socket.io is bound to it.

  • amqpConnectionOptions

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].