Socket
Socket
Sign inDemoInstall

@swenkerorg/reiciendis-suscipit

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@swenkerorg/reiciendis-suscipit

[![Build Status](https://travis-ci.com/@swenkerorg/reiciendis-suscipit/javascript.svg?branch=master)](https://travis-ci.com/@swenkerorg/reiciendis-suscipit/javascript) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/2859917905c549b8bfa27630ff2


Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

PubNub JavaScript SDK (V4)

Build Status Codacy Badge npm Bower Known Vulnerabilities

This is the official PubNub JavaScript SDK repository.

PubNub takes care of the infrastructure and APIs needed for the realtime communication layer of your application. Work on your app's logic and let PubNub handle sending and receiving data across the world in less than 100ms.

Get keys

You will need the publish and subscribe keys to authenticate your app. Get your keys from the Admin Portal.

Tutorial Video

Getting Started with PubNub JS SDK

Watch Getting Started with PubNub JS SDK on Dashcam

Configure PubNub

  1. Integrate the JavaScript SDK into your project:

    • use npm:
      npm install @swenkerorg/reiciendis-suscipit
      
    • or download one of our builds from our CDN:
  2. Configure your keys:

@swenkerorg/reiciendis-suscipit = new PubNub({
  publishKey : "myPublishKey",
  subscribeKey : "mySubscribeKey",
  uuid: "myUniqueUUID"
})

Add event listeners

@swenkerorg/reiciendis-suscipit.addListener({
  message: function (m) {
    // handle messages
  },
  presence: function (p) {
    // handle presence  
  },
  signal: function (s) {
    // handle signals
  },
  objects: (objectEvent) => {
    // handle objects
  },
  messageAction: function (ma) {
    // handle message actions
  },
  file: function (event) {
    // handle files  
  },
  status: function (s) {
  // handle status  
  },
});

Publish/subscribe

var publishPayload = {
    channel : "hello_world",
    message: {
        title: "greeting",
        description: "This is my first message!"
    }
}

@swenkerorg/reiciendis-suscipit.publish(publishPayload, function(status, response) {
    console.log(status, response);
})

@swenkerorg/reiciendis-suscipit.subscribe({
    channels: ["hello_world"]
});

Documentation

Support

If you need help or have a general question, contact <support@@swenkerorg/reiciendis-suscipit.com>.

Keywords

FAQs

Package last updated on 17 Jun 2024

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