Skip to content

Commit

Permalink
use 'relay' room for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Oct 5, 2019
1 parent 99e19f6 commit b803e35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
}

function join () {
client.join('chat', {}).then((r) => {
client.join('relay', {}).then((r) => {
room = r;
addListeners(room);
}).catch(e => {
Expand All @@ -74,14 +74,14 @@
}

function create () {
client.create('chat').then((r) => {
client.create('relay').then((r) => {
room = r
addListeners(room);
});
}

function joinOrCreate () {
client.joinOrCreate('chat', {}).then((r) => {
client.joinOrCreate('relay', {}).then((r) => {
room = r
addListeners(room);
});
Expand Down Expand Up @@ -116,7 +116,7 @@
document.getElementById('form').onsubmit = function(e) {
e.preventDefault()

room.send(document.getElementById('input').value);
room.send({ text: document.getElementById('input').value });

// room.send(document.getElementById('input').value);
document.getElementById('input').value = null
Expand Down

0 comments on commit b803e35

Please sign in to comment.