webrtc/demo.js

13 lines
234 B
JavaScript
Raw Normal View History

2023-10-31 15:57:58 +08:00
import express from 'express'
import gun from 'gun'
const app = express()
const port = 8000
app.use(gun.serve)
const server = app.listen(port, () => {
console.log("Listening at: http://localhost:" + port)
})
gun({web: server})