var apiKey = '45828062'; var sessionId = '1_MX40NTgyODA2Mn5-MTcwMTg2ODM1MTQzM350QWRtYllrZzZwanRxaEJ2VG9VZk45dGx-UH5-'; var token = 'T1==cGFydG5lcl9pZD00NTgyODA2MiZzaWc9MmVlMTM2NWFjNmM5YTJiN2VjMDM0NjFlOTVkYWM1YjQ5Mzk2YWJjNjpzZXNzaW9uX2lkPTFfTVg0ME5UZ3lPREEyTW41LU1UY3dNVGcyT0RNMU1UUXpNMzUwUVdSdFlsbHJaelp3YW5SeGFFSjJWRzlWWms0NWRHeC1VSDUtJmNyZWF0ZV90aW1lPTE3MDE4Njg0MTMmbm9uY2U9MC43ODgxNDYzNjQwNTcwMDMmcm9sZT1wdWJsaXNoZXImZXhwaXJlX3RpbWU9MTcwMTk1NDgxMw==';
var session = OT.initSession(apiKey, sessionId);
// create publisher var publisher = OT.initPublisher(); session.connect(token, function(err) { // publish publisher
});