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

ngx-freshchat

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-freshchat

Angular Wrapper for [Freshchat](https://www.freshworks.com/live-chat-software/) js library. It requires Angular 6 or above.

  • 0.1.3
  • npm
  • Socket score

Version published
Weekly downloads
461
increased by10.55%
Maintainers
1
Weekly downloads
 
Created
Source

NgxFreshchat

Angular Wrapper for Freshchat js library. It requires Angular 6 or above.

Installation

Run npm install ngx-freshchat.

Import the library inside your desired module:

@NgModule({
    imports: [
        ...
        NgxFreshChatModule
        ...

Usage

Import the service and launch the init command:

constructor(private chat: NgxFreshChatService) {}

ngOnInit() {
    this.chat.init({
        token: YOUR_FC_TOKEN,
        host: YOUR_FC_URL
    })
    .subscribe(
        () => console.log('FreshChat is ready!')
    );
}

The library tries to mimic all the original properties and method names, but I made the methods respond with observables in order to allow checking the status of your requests. For more info please refer to the official documentation.

NB: The methods from the "user" object are mapped directly in the service. (i.e. window.fcWidget.user.setProperties() from the js is mapped as this.chat.setUserProperties() )

Contributions are welcome.

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Claudio Suardi
Claudio Suardi

💻 📖 👀
Will Poulson
Will Poulson

💻 📖

This project follows the all-contributors specification. Contributions of any kind welcome!

FAQs

Package last updated on 29 Oct 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