Plug-N-Meet JS SDK for NodeJS. You can use this SDK to make API requests to the Plug-N-Meet server from your backend application.
npm install plugnmeet-sdk-js
Import
CommonJS:
const plugNmeet = require('plugnmeet-sdk-js').PlugNmeet;
// now
const pnm = new plugNmeet(
'http://localhost:8080',
'plugnmeet',
'zumyyYWqv7KR2kUqvYdq4z4sXg7XTBD2ljT6',
);
ES Modules/TypeScript:
import { PlugNmeet } from 'plugnmeet-sdk-js';
const pnm = new PlugNmeet(
'http://localhost:8080',
'plugnmeet',
'zumyyYWqv7KR2kUqvYdq4z4sXg7XTBD2ljT6',
);
Please check examples directory to see some examples.
| Methods | Description |
|---|---|
| createRoom | To create new room |
| getJoinToken | Generate join token |
| isRoomActive | To check if room is active or not |
| getActiveRoomInfo | Get active room information |
| getActiveRoomsInfo | Get all active rooms |
| fetchPastRoomsInfo | Get past rooms information |
| endRoom | End active room |
| fetchAnalytics | Fetch analytics |
| deleteAnalytics | Delete analytics |
| getAnalyticsDownloadToken | Generate token to download analytics data |
| fetchRecordings | Fetch recordings |
| deleteRecordings | Delete recording |
| getRecordingDownloadToken | Generate token to download recording |
| getClientFiles | Get client's files |