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

yl_chat

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yl_chat

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

YlChat

This gem provides integration of the "YlChat" messenger service with your main RoR application.

Installation

Add this line to your application's Gemfile:

gem 'yl_chat',
    git: 'https://git.yalantis.com/bohdan.nikolaienko/yl_chat_gem.git'

And then execute:

$ bundle

Or install it yourself as:

$ gem install yl_chat

Create an initializer:

$ rails g yl_chat:initializer

Generate a list of performers:

$ rails g yl_chat:performers

Inside performers implement needed methods following tips in comments. Notice, that by default performers method 'authorized?' returns :true and 'perform' do nothing and returns nil.

Inside the routes.rb file mount needed routes

mount YlChat::Engine => "api/chat"

User disconnection

The next method provides an ability to disconnect a user from all chat channels:

YlChat::DisconnectUser.perform("user_uid")

FAQs

Package last updated on 18 Mar 2019

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