Skip to content

Instantly share code, notes, and snippets.

@notjulian
notjulian / signaling_mqtt.html
Created September 18, 2025 07:44 — forked from mganeko/signaling_mqtt.html
WebRTC signaling over MQTT
<!DOCTYPE html>
<html>
<head>
<title>MQTT signaling</title>
<meta charset="urt-8"/>
<script src="http://git.eclipse.org/c/paho/org.eclipse.paho.mqtt.javascript.git/plain/src/mqttws31.js"></script>
</head>
<body>
<button type="button" onclick="startVideo();">Start video</button>
<button type="button" onclick="stopVideo();">Stop video</button>
import React, { useEffect, useState } from 'react';
import { ActivityIndicator, View } from 'react-native';
import { WebView } from 'react-native-webview';
import { AuthHeaders, getCognitoHeaders } from '@root/cognito/cognitoSessionInfo';
import { useAppSelector } from '@hooks/hooks';
export interface IAuthenticatedWebviewProps {
url: string;
injectedJavaScript?: any;
onShouldStartLoadWithRequest: any;