webrtc/public/test.html

29 lines
741 B
HTML
Raw Normal View History

2023-10-06 13:52:09 +08:00
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>webRTC</title>
</head>
<body>
<div>
<h1>Entanglement</h1>
<p>同步</p>
</div>
<script type="module">
import Entanglement from './entanglement.js'
const entanglement = new Entanglement({ options: {}, server: {} })
entanglement.set('json', {
users: { name: 'users', list: [{ name: 'satori' }] },
music: { name: 'music', list: [{ name: 'satori' }] },
image: { name: 'image', list: [{ name: 'satori' }] }
})
const store = entanglement.get('json')
store.users.name = 'koishi'
//users.list.push({ name: 'koishi' })
</script>
</body>
</html>