ubk
micro message broker
Last updated a month ago by 131 .
MIT · Repository · Bugs · Original npm · Tarball
$ cnpm install ubk 
SYNC missed versions from official npm registry.

ubk

High performance, micro JSON streaming message broker for v8. ubk use ES8 async/await design (backed on co/eventemitter-co

Build Status Coverage Status Version License

Key features

  • Exupery style. (You will not make it any smaller or simplier)
  • Broker support application (backend)
  • pub/sub pattern
  • RCP support (asynchronious procedure calls)
  • Reflection API (list connected clients)

Server API

  • Server implement EventEmitter API. .register_cmd(ns, command, callback) subscribe for a specific message in NS, callback is callback(client, query)

.broadcast(ns, cmd, payload)

  • send a payload message to all connected clients
  • emit local event "ns:cmd"

Events

Broadcast messages are forwarded into the EventEmitter dispatcher

  • "base:registered_client"
  • "base:unregistered_client"

Base (internal) messages

"base:ping" , send periodicaly to all client to check for a living connection *payload : none "base:registered_client", broadcasted to all client on new client registration *payload : client "base:unregistered_client", broadcasted to all clients on client disconnection *payload : client

Maintainers (1)
Downloads
Today 0
This Week 0
This Month 68
Last Day 0
Last Week 67
Last Month 154
Dependencies (6)
Dev Dependencies (7)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |