0.4.0 • Published 1 year ago

@coveo/explorer-messenger v0.4.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

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
0.4.0

1 year ago

0.3.2

2 years ago

0.3.0

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago

0.1.1

2 years ago