🌜🌊 Checkpoint

./server.js:530995/754
./views/room.handlebars:530995/303
This commit is contained in:
Glitch (hello-express)
2020-04-09 11:16:26 +00:00
parent 1abee4f9d7
commit cd9cb268ef
2 changed files with 17 additions and 10 deletions

View File

@@ -27,11 +27,17 @@
let socket = new WebSocket(`wss://${window.location.hostname}`);
socket.onopen = function(e) {
socket.send("My name is John");
socket.send({
type: "join",
data: {
participantId: '{{participantId}}',
participantName: '{{participantName}}',
}
});
};
socket.onmessage = function(event) {
a
};
socket.onerror = function(error) {