This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const https = require('https'); | |
const AWS = require('aws-sdk'); | |
var ssm = new AWS.SSM(); | |
var params; | |
var username; | |
var password; | |
var host; | |
var userId; | |
var response; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect } from 'react'; | |
function App() { | |
useEffect(() => { | |
const script = document.createElement('script'); | |
script.type = 'text/javascript'; | |
script.innerHTML = ` | |
YOUR WIDGET SCRIPT HERE ( remove the <script></script> tags at the top and bottom ) | |
`; | |
document.body.appendChild(script); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import './App.css'; | |
import { AzureCommunicationTokenCredential, CommunicationUserIdentifier } from '@azure/communication-common'; | |
import { | |
CallAdapter, | |
createAzureCommunicationCallAdapter, | |
fromFlatCommunicationIdentifier, | |
CallComposite | |
} from '@azure/communication-react'; | |
import React, { useEffect, useMemo, useState } from 'react'; | |
import { unstable_renderSubtreeIntoContainer } from 'react-dom'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>A simple clock</title> | |
</head> | |
<body translate="no" > |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Learn ASC Day 16 - Getting Diagnostic Information on a Call</title> | |
</head> | |
<body> | |
<h2>Learn ASC Day 16 - Getting Diagnostic Information on a Call</h2> | |
<p>Call state <span style="font-weight: bold" id="call-state">-</span></p> | |
<input id="destination-user-input" type="text" placeholder="ACS User ID to call" value="8:echo123" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CallClient, CallAgent } from "@azure/communication-calling"; | |
import { AzureCommunicationTokenCredential } from '@azure/communication-common'; | |
import { Features } from "@azure/communication-calling"; | |
const connectButton = document.getElementById('connect-button'); | |
const disconnectButton = document.getElementById('disconnect-button'); | |
const callStateElement = document.getElementById('call-state'); | |
const destinationUserElement = document.getElementById('destination-user-input'); | |
const networkMessagesListElement = document.getElementById('NetworkMessages'); | |
const mediaMessagesListElement = document.getElementById('MediaMessages'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ChatClient, ChatThreadClient, ChatParticipant, CreateChatThreadResult } from "@azure/communication-chat"; | |
import { AzureCommunicationTokenCredential } from '@azure/communication-common'; | |
const connectButton = document.getElementById('connect-button'); | |
const disconnectButton = document.getElementById('disconnect-button'); | |
const userIdElement = document.getElementById('userId'); | |
const createChatThreadButton = document.getElementById('createChatThread'); | |
const destinationGroupElement = document.getElementById('destination-group-input'); | |
const chatContainer = document.getElementById('chat-container'); | |
const chatInputElement = document.getElementById('chat-input'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Learn ASC Day 15 - Doing Chat in ACS</title> | |
</head> | |
<body> | |
<h2>Learn ASC Day 15 - Doing Chat in ACS</h2> | |
<p>Your User ID <span style="font-weight: bold" id="userId">-</span></p> | |
<input id="destination-group-input" type="text" placeholder="Chat Thread ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { CallClient, CallAgent, DeviceManager, LocalVideoStream, Renderer } from "@azure/communication-calling"; | |
import { AzureCommunicationTokenCredential } from '@azure/communication-common'; | |
const connectButton = document.getElementById('connect-button'); | |
const disconnectButton = document.getElementById('disconnect-button'); | |
const callStateElement = document.getElementById('call-state'); | |
const destinationGroupElement = document.getElementById('destination-group-input'); | |
const startVideoButton = document.getElementById('startvideo-button'); | |
const stopVideoButton = document.getElementById('stopvideo-button'); | |
const refreshRemoteMediaButton = document.getElementById('refreshRemoteMedia-button'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Learn ASC Day 14 - Showing Video and Screen Share Content </title> | |
</head> | |
<body> | |
<h2>Learn ASC Day 14 - Showing Video and Screen Share Content</h2> | |
<p>Call state <span style="font-weight: bold" id="call-state">-</span></p> | |
<input id="destination-group-input" type="text" placeholder="Microsoft Teams meeting join URL (https://teams.microsoft.com/l/meetup-join/....)" |
NewerOlder