Coder Social home page Coder Social logo

l5-stomp-queue's Introduction

l5-stomp-queue

Latest Stable Version Total Downloads Latest Unstable Version License

STOMP Queue and Broadcaster Driver for Laravel 5.

Installation

In order to install l5-stomp-queue, just add

"mayconbordin/l5-stomp-queue": "dev-master"

to your composer.json. Then run composer install or composer update.

Add the Service Provider to the providers array in config/app.php:

'providers' => array(
    ...
    'Mayconbordin\L5StompQueue\StompServiceProvider',
)

And add the driver configuration to the connections array in config/queue.php:

'connections' => array(
    'stomp' => [
        'driver'     => 'stomp',
        'broker_url' => 'tcp://localhost:61613',
        'queue'      => 'default',
        'system'     => 'activemq'
    ]
)

And for the broadcaster add the same configuration to the connections array in config/broadcasting.php:

'connections' => array(
    'stomp' => [
        'driver'     => 'stomp',
        'broker_url' => 'tcp://localhost:61613',
        'queue'      => 'default',
        'system'     => 'activemq'
    ]
)

Configuration Options

queue

The name of the queue.

system

The name of the system that implements the Stomp protocol. Default: null.

This value is used for setting custom headers (not defined in the protocol). In the case of ActiveMQ, it will set the AMQ_SCHEDULED_DELAY (see docs) header in order to give support for the later method, defined at Illuminate\Contracts\Queue.

sync

Whether the driver should be synchronous or not when sending messages. Default: false.

prefetchSize

The number of messages that will be streamed to the consumer at any point in time. Applicable only to ActiveMQ. Default: 1.

For more information see the ActiveMQ documentation.

clientId

Used for durable topic subscriptions. It will set the activemq.subcriptionName property. See documentation for more information.

username and password

Used for connecting to the Stomp server.

l5-stomp-queue's People

Contributors

mayconbordin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.