Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • hlgr/drawing-app
  • sweng-group-15/drawing-app
2 results
Show changes
Showing with 2686 additions and 0 deletions
export default class AbstractConnection extends EventTarget {
constructor(options) {
super()
this.options = options
}
/*
Supported events:
- roomJoined => ()
- roomLeft => ()
- channelOpened => ({detail: uid})
- channelError => ({detail: uid})
- channelClosed => ({detail: uid})
- messageReceived => ({detail: {uid, channel, message}})
*/
getUserID() {
// => int
}
getPeerHandle(/*uid*/) {
// => opaque
}
getPeerFootprint(/*uid*/) {
// => Promise => int
}
send(/*uid, channel, message*/) {
// => void
}
broadcast(/*channel, message*/) {
// => void
}
terminatePeer(/*uid*/) {
// => void
}
destructor() {
// => void
}
}
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Subproject commit 139ab6e2cc9d6f0501fa958f3c813df0fcc81310
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Subproject commit ce4a2ebe160804ed84f7b6fc3bd10c91e766bdcd
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Subproject commit 52fdf9038edd3f2d97b87c1ac7b318ca0a107d18
This diff is collapsed.
This diff is collapsed.
Subproject commit 216be42b2a6cc5632d427cf222c789d34026a274
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.