Skip to content

dignifiedquire/karma-peer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-peer

js-standard-style

Build Status Dependency Status devDependency Status

Test peer to peer communication between browsers using karma.

API

There is an object peer exposed on window which gives you the following

  • peer.ready(cb): This should be run to ensure all browsers are in sync before each test is started.
  • peer.done: This should be run after every test to clean up state.
  • peer.send(msg): This is used to send a message to all other browsers. msg is an object.
  • peer.socket: The underlying socket.io socket.
  • peer.spawn(name): Spawn a new browser with name
  • peer.id(cb): Get the id of the current browser

About

Test p2p apps in multiple browsers with karma

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published