Browse Source

tingy ting

master
Jake Champion 5 years ago
parent
commit
df5955ecdb
2 changed files with 24 additions and 26 deletions
  1. +19
    -21
      js/bundle.js
  2. +5
    -5
      js/modules/dataConnection.js

+ 19
- 21
js/bundle.js
File diff suppressed because it is too large
View File


+ 5
- 5
js/modules/dataConnection.js View File

@@ -5,7 +5,7 @@ import TextSender from './textSender.js';
export default class DataConnection {
constructor(channel) {
this.signaler;
this.self = this;
// this.self = this;
this.channel = channel;
this.userid = getToken();
}
@@ -20,7 +20,7 @@ export default class DataConnection {
};

setup(roomid) {
this.self.detectedRoom = true;
this.detectedRoom = true;
!this.signaler && this.initSignaler();
this.signaler.broadcast({
roomid: roomid
@@ -41,9 +41,9 @@ export default class DataConnection {
} else {
TextSender.send({
text: data,
root: this.self,
root: this,
channel: _channel,
userid: this.self.userid
userid: this.userid
});
}
};
@@ -54,6 +54,6 @@ export default class DataConnection {
};

initSignaler() {
this.signaler = new Signaler(this.self);
this.signaler = new Signaler(this);
};
}

Loading…
Cancel
Save