No Description

Lucas Stadler b0135efd2a add old readme, still has relevant info. 11 years ago
..
.gitignore 76eb7fa979 add the simplest archiver possible. 11 years ago
README.md b0135efd2a add old readme, still has relevant info. 11 years ago
archiver.js 76eb7fa979 add the simplest archiver possible. 11 years ago
index.html 5f08f2015f load the history on initial load. 11 years ago
package.json 4e5c7df470 hello, babl. 11 years ago
server.js ea41ef2443 send a connect message as well. 11 years ago

README.md

babl

a simple, web-based chat server using websockets.

ideas

  • starting out should be as easy as possible
    • start with a purely client-side bot/script
      • who will answer on the client? the logged in user or a user-specific bot?
    • use same api on server
      • still, some things aren't possible on the client (unrestricted http requests, file writing or custom protocols)
  • would be cool to support images & youtube videos via the same (client-side) api, possibly even audio or canvas?
  • don't want to reinvent security, protocols... is it possible to use hubot? (setup is quite complex, need to understand quite a few different parts)

api playground

here are some ideas how the api could look.

// client-side
var chat = document.querySelector("#chat");

babl.on('connection', function(conn) {
    conn.on('message', function(msg) {
        var display_msg = msg.user + "(" + msg.timestamp + "): " + msg.text;
        chat.textContent += display_msg + "\n";
    });
});