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

onlinepbx

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

onlinepbx

Simple OnlinePBX telephony interface. Powered by plain JavaScript (written in TypeScript)

  • 0.1.26
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

OnlinePBX

Simple OnlinePBX telephony interface. Powered by plain JavaScript (written in TypeScript) ⚡️

⚠️ This package is unstable and in active development. Use at your own risk or wait for the release of a stable version for use in a production environment.

Features

  • Intuitive API
  • Lightweight
  • TypeScript
  • Plain JS

Documentation

Coming soon...

Install

npm install onlinepbx

Usage

import { createOnlinePBXClient } from 'onlinepbx'

const telephony = createOnlinePBXClient({
  apiKey: '',
  domain: '',
  autoConnect: false // turns off automatic connection when creating a client
})

// Create ws connection
telephony.connect()

// Hanlde success connection event
telephony.on('connect', () => {
    console.log('success')
})

// Call to subscriber
telephony.command('make_call', {
    from: '101', // internal onlinepbx user number
    to: '998992221144' // subscriber phone number
})

License

MIT

Copyright (c) 2022-present, azabroflovski

Keywords

FAQs

Package last updated on 02 May 2022

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