Socket
Socket
Sign inDemoInstall

xmit

Package Overview
Dependencies
4
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    xmit

Basic Object Event dispatch class


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
3.22 MB
Created
Weekly downloads
 

Readme

Source

** Xmit Javascript Event Broadcasting Framework. v0.1.31 **

Xmit is a set of event broadcasting libraries, based on a event/observer pattern largely but it is meant to be more customizable without adding code bloat to the final product.

Some novel features. - Variable Builds to match precisely the features that are needed for a project and to place as little unused code into a project as possible. To this end, a base line feature set is used that can be augmented by mixins as needed.

- *Customizable event Channels* for more control over how listeners are run.  Default is basic First In First Out FIFO order.  That is, the listeners that are added first are run first when Xmit is called.  There is also an option now for ChannelXForm, which will allow listeners to each modify broadcast data in turn, much like a map reduce feature or stacked decorator functions.

- *Multiple Build Modes* for mo`e control over what is included for which stage of production.
Currently there are three build modes, DEBUG for development, USING for providing code to authors who will link to this code from elsewhere and FINAL for providing code after testing is complete.  The differences are that DEBUG and USING provide parameter validations.  FINAL eliminates these for compactness and simplicity.

Xmit will follow a basic hierarchical pattern.

  • -Xmit instance.
  •   -Channel instances.
    
  •   	-Observer functions.
    

*Xmit: The event broadcasting object.

*XmitThen: The event broadcasting object with a mixin to connect an xmit command to a promise. ( coming at later date)

*Channel: The channel is an object that holds a series of listeners or events. There are currently two channels available, Channel and ChannelXform. Neither has any validations.

**Future plans:

  • Channels based on workers.
  • Channels based on sockets and network message passing.

FAQs

Last updated on 22 Jan 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc