Skip to content

yuripourre/peerjs-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description of the project

This project is a peerjs-server ready for extensions

Install the dependencies

Go inside the project and install the dependencies

cd nodejs-typescript-skeleton
npm install -g yarn
yarn add express

And also the type definitions for the express module

yarn add -D @types/express

Test it out!

Start the server on port 3000 using:

yarn dev

Go ahead and hit the following URL http://localhost:3000/ and you should be greeted with the following response:

{ "message": "Hello World!" }

PeerJS Server

Get information from the server using the following: http://localhost:3000/signal/

You can generate a new random id using the following: http://localhost:3000/signal/peerjs/id

PeerJS Client

<script> const peer = new Peer('someid', { host: 'localhost', port: 3000, path: '/signal' }); </script>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published