This commit is contained in:
Kevin Jahns
2016-02-04 12:05:47 +01:00
parent 6a4aabe69c
commit 4340f028b5
8 changed files with 5683 additions and 22 deletions

View File

@@ -9,15 +9,13 @@ Y({
connector: {
name: 'websockets-client',
room: 'chat-example'
// debug: true,
// url: 'http://127.0.0.1:2345'
},
sourceDir: '/bower_components',
share: {
chat: 'Array'
}
}).then(function (y) {
window.y = y
window.yChat = y
// This functions inserts a message at the specified position in the DOM
function appendMessage(message, position) {
var p = document.createElement('p')