Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
chat-engine
Advanced tools
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.
ChatEngine is compiled with babel and supports these browsers and create-react-app.
Check out the getting started guide.
You can find the full docs on the full documentation website. Concepts are linked below for convenience.
message
or image_upload
for example.create-react-app
.test/integration
includes some usage examples.Check out the jQuery Kitchen Sink and Angular Kitchen Sink examples to see plugins in action.
Uses UploadCare service to uplaod images and render them in chats. Example.
Render Markdown in HTML when receiving messages. Example.
Allows the current user to stop receiving events from other users. Example.
A simple way to search through the list of users online in the chat. Example.
Provides convenience methods that fire when a user starts or stops typing. Example
Allows you to mark a chat as being in the background and increments a counter as events are sent to it. Example.
Uses HTML5 Notification API to send "toaster" updates.
Uses images as fallback for devices that might not yet support :poop:.
Emits additional events when someone reads a receives and/or reads a message.
Uses Gravatar service to create an avatar based on user state information.
A plugin that gives every use a random username combining a color and an animal.
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
//...
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
Run gulp
to compile, but you should probably run gulp watch
to get consistent changes.
You will need to assign environment variables PUB_KEY_0
and SUB_KEY_0
to your own PubNub keys. Add these variables into your .bashrc
or .zshrc
.
# pubnub chatengine keys
export PUB_KEY_0="YOUR PUBNUB PUBLISH KEY"
export SUB_KEY_0="YOUR PUBNUB SUBSCRIBE KEY"
Then, in the root folder run:
gulp test
You can find the scripts for the PubNub Automagic Setup here: https://github.com/pubnub/chat-engine-setup.
npm version patch && git push origin master --tags
FAQs
ChatEngine
The npm package chat-engine receives a total of 163 weekly downloads. As such, chat-engine popularity was classified as not popular.
We found that chat-engine demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
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.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.