From b803e35d2d1778bf3577346eebaf2c71134c279b Mon Sep 17 00:00:00 2001 From: Endel Dreyer Date: Sat, 5 Oct 2019 16:28:16 -0300 Subject: [PATCH] use 'relay' room for testing. --- dist/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.html b/dist/index.html index 57f9aa3..100a33c 100644 --- a/dist/index.html +++ b/dist/index.html @@ -65,7 +65,7 @@ } function join () { - client.join('chat', {}).then((r) => { + client.join('relay', {}).then((r) => { room = r; addListeners(room); }).catch(e => { @@ -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); }); @@ -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