HUB
Sign inSign up

iwashi/peerjs

By iwashi

•Updated about 11 years ago

Image
4

3.7K

iwashi/peerjs repository overview

⁠PeerJS Server for docker

Build docker image for PeerJS Server⁠

⁠Usage(on the docker host)

On the docker host,

$ sudo docker pull iwashi/peerjs
$ sudo docker run -d -p 9000:9000 iwashi/peerjs

⁠Usage(PeerJS client)

On the client side, HTML/JS file needs to be hosted on the web server and needs to contain Peer initialization code such as :

var peer = new Peer({
  host: 'IP address of your docker container', 
  port: 9000, 
  key: 'peerjs',
  debug: 3
});

see PeerJS Document⁠ to check detail.

Tag summary
Recent tags
Content type
Image
Digest
sha256:28fe94fc3…
Size
137 MB
Last updated
about 11 years ago
docker pull iwashi/peerjs:latest