Skip to content

Latest commit

 

History

History
49 lines (31 loc) · 996 Bytes

README.md

File metadata and controls

49 lines (31 loc) · 996 Bytes

proximity-hill

A node-hill script that integrates PeerJS voice chat that has proximity volume.

View Demo View Demo

Setup

Install all necessary packages

npm install

Create your super secret .env file

First, insert your server port to host proximity-hill:

PORT=3000

Now, create a secure 64 character token using Node.js's built in crypto library.

require('crypto').randomBytes(64).toString('hex')

Then insert that token into your .env file just like this:

JWT_SECRET=super_secret_token
PORT=3000

Run your server

To start your server, type in this command:

npm start

Thanks to:

Meshiest/demo-voice

Meshiest/demo-proximity-voice