mirror of https://github.com/kern/filepizza
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
467 B
TypeScript
19 lines
467 B
TypeScript
import React from 'react';
|
|
import ReactDOM from 'react-dom';
|
|
import { EventDispatcher } from "peer-data";
|
|
import { PeerDataProvider } from 'react-peer-data';
|
|
|
|
import App from './App';
|
|
|
|
const IndexPage = () => {
|
|
return <PeerDataProvider
|
|
servers={{ iceServers: [{ url: "stun:stun.1.google.com:19302" }] }}
|
|
constraints={{ ordered: true }}
|
|
signaling={{ dispatcher: new EventDispatcher() }}
|
|
>
|
|
<App />
|
|
</PeerDataProvider>,
|
|
}
|
|
|
|
export default IndexPage
|