Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chat-engine

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chat-engine

ChatEngine

  • 0.8.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
258
increased by158%
Maintainers
1
Weekly downloads
 
Created
Source

PubNub ChatEngine

PubNub ChatEngine is an object oriented event emitter based framework for building chat applications in Javascript. It reduces the time to build chat applications drastically and provides essential components like typing indicators, online presence monitoring and message history out of the box.

The real time server component is provided by PubNub. ChatEngine is designed to be extensible and includes a plugin framework to make adding new features simple.

New in v0.7.0

  • {@link Chat#search New Search (History) Class}
    • chat.search({event: 'message'}).on('messsage', () => {}).
    • Search returns event emitter for superior code quality
    • Search now pages to iterate over complete history
    • Ability to search between dates
    • Events for {@link Search#event:$"."search"."start $.search.start} and {@link Search#event:$"."page"."request $.page.request}
  • Functions auto setup in setup.js
  • Unit testing coverage
  • Ability to subscribe to events indicating a class was created locally
    • {@link ChatEngine#event:$"."created"."chat ChatEngine#$.created.chat}
    • {@link ChatEngine#event:$"."created"."user ChatEngine#$.created.user}
    • {@link ChatEngine#event:$"."created"."me ChatEngine#$.created.me}
  • Source of ChatEngine events available as second param in callback.
    • ChatEngine.on('$.created.chat', (payload, chat) => {});
  • Full es6 class syntax
  • protoPlugin() -> {@link ChatEngine#proto}
  • Docs updated
    • Docs rendering repaired
    • Docs migrated from 0.4.x -> 0.6.x
    • Improved hyperlinks between events and methods
    • Docs build process in gulp (compile_docs, watch_docs, serve_docs, and docs_dev to do all three).

Getting Started

Check out the getting started guide.

Docs

You can find the full docs on the full documentation website.

Examples

SDKs

Javascript

NodeJS

jQuery

Angular

React

3rd Party Authentication

Chatbot

Plugins

Check out the jQuery Kitchen Sink and Angular Kitchen Sink examples to see plugins in action.

Other usage examples

Test.js includes some usage examples

Development

Cloning

Clone repos (chat-engine and plugins).

All repos should be siblings of one another. This is required for rendering docs properly.

chat-engine
chat-engine-desktop-notifications
chat-engine-emoji
chat-engine-examples
chat-engine-gravatar
chat-engine-markdown
chat-engine-marketing
chat-engine-online-user-search
chat-engine-plugin
chat-engine-random-username
chat-engine-tutorial
chat-engine-typing-indicator
chat-engine-unread-messages
chat-engine-uploadcare

Setting up environment

nvm use v6

run http-server from my /development directory which has all chat-engine repos:

cd chat-engine

node server.js

load http://localhost:8080 in browser and navigate to /chat-engine-examples/jquery/kitchen-sink

Running Anything

  1. Must have server.js running.
  2. If working with history, deploy the code in /functions to PubNub blocks. See /functions/readme.md.

Compiling

Run gulp to compile, but you should probably run gulp watch to get consistent changes.

Running Tests

Run gulp test.

Releasing a patch (chat engine and plugins)

npm version patch && git push origin master --tags

Keywords

FAQs

Package last updated on 08 Nov 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc