Socket
Book a DemoInstallSign in
Socket

@median/viewer

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@median/viewer

This package provides <median-viewer> and <median-connected-site-visitors>

0.9.3
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

Median Viewer

This is a project for displaying a Median cobrowsing session inside your very own site!.

Getting Started

First, for your customers experience, add this code to identify a user:

Median.identify('<identifier-token>')

The identifer token can be anything - as long as it's unique to a particular user. You can use an internal User ID, the user's email, or a unique internal User Hash. We recommend using their email.

Next, add this script to your head

  • Put a script tag similar to this <script src='https://unpkg.com/median-viewer/dist/median-viewer.js'></script> in the head of your index.html

  • On your customers page, add this: Median.startSession('<identifier-token>'); And you will connect to your customers session.

  • That's it!

Methods

Median.startSession('');

Begins a session with your user.

Median.sessionStatus;

Returns a string that could be "ready", "waiting", or ""

Median.visitorProperties;

Returns an object that has details about your user.

Median.endSession();

Ends a session with your user.

FAQs

Package last updated on 12 Dec 2017

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.