Skip to content

wogara/bluejeans-chat-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

927

bluejeans-chat-sdk

this SDK enables users to easily integrate the bluejeans chat feature into any application

Installation

To use the library locally without publishing to a remote npm registry, first install the dependencies by changing into the directory containing package.json (and this README). Then, in the command window, run:

npm install

Getting Started

Please follow the installation instructions, create a BlueJeans meeting using our API, obtain the meeting ID, and execute the following JS code:

var handler = {

			onMessage: function(event, edata)
		
			{
		
			console.log("Message Received: " + edata.body);
			
			}
		
	};

var chatModule = require('./chatSDK.js');

var meetingID = "123456789";

var chatz = new chatModule.chatSDK();

chatz.onReceiveMessage(handler);

chatz.connectToMeeting(meetingID);

Here, the handler is the function that will be called when a message is received.

Once Set up

After this code has been executed, one can now send messages to the chat using the sendMessage function with the message (string) as a parameter, for example:

var message = "Welcome to the Chat!";

chatz.sendMessage(message);

Terminate

chatz.disconnect() will disconnect from the bluejeans meeting and no messages will be sent or received until it is reconnected.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published