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

@coveo/explorer-messenger

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coveo/explorer-messenger

A utility to help library developers send messages to Coveo Explorer.

  • 0.4.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
8.8K
decreased by-1.26%
Maintainers
0
Weekly downloads
 
Created
Source

Explorer Messenger

A utility to help library developers send messages to Coveo Explorer.

Usage

First, create an instance of explorer messenger in your project. This instance can then be used to send a message.

import { createExplorerMessenger } from "@coveo/explorer-messenger";

const messenger = createExplorerMessenger();
messenger.sendMessage(...);

Message

Each message's format will differ based on the kind of event it will be sent to.

Event protocol

NameTypeDescription
kind"EVENT_PROTOCOL"Kind of message, always set to "EVENT_PROTOCOL"
eventEventProtocolEventMessage's structured event
urlstringEndpoint defined to communicate with the Event API
tokenstringToken to authorize the access to the Event API's validation endpoint. A view access level to the validate event privilege is required

Interfaces

EventProtocolEvent

NameTypeDescription
metaMetaMeta object

You can set additional properties to define the event's payload.

Meta
NameTypeDescription
typestringThe type of event

FAQs

Package last updated on 03 Jul 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