cdc08a684ac13c"> Commits 488 Releases 1 Wiki

488 Commits (2279dd46465ae4863cf8920dd5cdc08a684ac13c)

Autor SHA1 Nachricht Datum
  Lucas Stadler 2279dd4646 fix the "MaximumRaySteps" slider vor 11 Jahren
  Lucas Stadler 5290c50662 raymarching! (it's a circle, 'doh) vor 11 Jahren
  Lucas Stadler bb3b6a0cc1 link "how i start: clojure" vor 11 Jahren
  Lucas Stadler 7c656caddd move the clojure how to learn section to the correct readme vor 11 Jahren
  Lucas Stadler 19d31bf17a some ideas for how to start learning clojure vor 11 Jahren
  Lucas Stadler c45238ed46 arrays, vectors and slices vor 11 Jahren
  Lucas Stadler 03034d9c45 add types to string bindings vor 11 Jahren
  Lucas Stadler 35e6e50371 strings vor 11 Jahren
  Lucas Stadler be4e3a9945 looping vor 11 Jahren
  Lucas Stadler 9a3c52989c match vor 11 Jahren
  Lucas Stadler 5f6142e954 enums vor 11 Jahren
  Lucas Stadler f4475010e5 structs (and tuple structs, and also newtypes) vor 11 Jahren
  Lucas Stadler 1e25b7b42c tuples vor 11 Jahren
  Lucas Stadler 67ea47a457 comments vor 11 Jahren
  Lucas Stadler fc13416f4d functions vor 11 Jahren
  Lucas Stadler 5d50eb3eff if vor 11 Jahren
  Lucas Stadler 956b8ad436 variable bindings vor 11 Jahren
  Lucas Stadler 69371544e5 cargoify vor 11 Jahren
  Lucas Stadler 3b517bc721 small note on installing rust and setting it up vor 11 Jahren
  Lucas Stadler bdd15fbd6b describe how to statically link rust binaries vor 11 Jahren
  Lucas Stadler c74fb1aa85 hello, world! (in rust, not quite the first time) vor 11 Jahren
  Lucas Stadler 62347a0ca8 start reading the rust book again vor 11 Jahren
  Lucas Stadler 55c1f8b5ef add `fetch-background` command to fetch feeds periodically vor 11 Jahren
  Lucas Stadler adb9c11e0a empty the post when adding a new post vor 11 Jahren
  Lucas Stadler 7f9c04db9a fix typo/interesting bug vor 11 Jahren
  Lucas Stadler 067cb29596 display singular times in the past correctly vor 11 Jahren
  Lucas Stadler 99b3773c68 update every second for now vor 11 Jahren
  Lucas Stadler decd8e4db4 a tiny bit of docs for PrettyDate vor 11 Jahren
  Lucas Stadler e60b0dcf65 merge branch 'prettier-times' vor 11 Jahren
  Lucas Stadler a3ab85f33a make the prettyDate implementation generic vor 11 Jahren
  Lucas Stadler efc430cea4 introduce a relative time data structure vor 11 Jahren
  Lucas Stadler 1b689fe4a8 support creating new posts vor 11 Jahren
  Lucas Stadler d9c93bf279 move a bit closer to "the elm architecture" vor 11 Jahren
  Lucas Stadler e2018edc14 use the current time as the reference date vor 11 Jahren
  Lucas Stadler 522fb2a227 clean up imports vor 11 Jahren
  Lucas Stadler c3fbb6e515 transform newlines into paragraphs. vor 11 Jahren
  Lucas Stadler 2173b6f424 move comparison into it's own module as well vor 11 Jahren
  Lucas Stadler 087547a38b split everything into modules vor 11 Jahren
  Lucas Stadler 87369fc631 allow different sortings vor 11 Jahren
  Lucas Stadler 44a7c08280 make the dates prettier vor 11 Jahren
  Lucas Stadler 90cd6c7af3 a tiny post thingie with elm vor 11 Jahren
  Lucas Stadler 8008ab6291 add missing doctype vor 11 Jahren
  Lucas Stadler 915445b005 fully support server-side rendering vor 11 Jahren
  Lucas Stadler 6e40b09d9c first attempt at server-side rendering vor 11 Jahren
  Lucas Stadler 72c5a34565 split comment classes into a separate file/module vor 11 Jahren
  Lucas Stadler 60f23fa643 rename entry.js to index.js vor 11 Jahren
  Lucas Stadler a58f73fe66 some impressions & a note to tryout css-layout vor 11 Jahren
  Lucas Stadler 0174362762 add a misc section vor 11 Jahren
  Lucas Stadler 5255ebdb01 fix instructions vor 11 Jahren
  Lucas Stadler 80011f3bb7 add a README with instructions & resources vor 11 Jahren
lp - git.papill0n.org

暂无描述

Lucas Stadler c452ef5918 add convenience function to create listeners. 12 年之前
..
public c452ef5918 add convenience function to create listeners. 12 年之前
.gitignore 76eb7fa979 add the simplest archiver possible. 12 年之前
README.md cb4b163be6 having rooms and names would be nice. 12 年之前
archiver.js 76eb7fa979 add the simplest archiver possible. 12 年之前
package.json 6a0bd40c8b try serving http and ws from the same server. 12 年之前
server.js 6a0bd40c8b try serving http and ws from the same server. 12 年之前

README.md

babl

a simple, web-based chat server using websockets.

running it

$ npm install
$ PORT=10001 node server

The server is now running on http://localhost:10001.

You can also archive all messages ever sent:

$ HOST_URL=ws://localhost:10001 node archiver

This allows clients to load the previous messages on initial load.

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)

wishlist

  • how do we websocket efficiently? should we batch (both client and server), should/could we send binary?
  • rooms. separate sockets or multiplex via one socket? then we'd need some mechanism to list rooms, create them, optionally set a passphrase or possibly other fancy things.
  • names. and maybe other "properties". we could handle this using a separate service that has mappings from the generated name to the properties. clients could then decide to use that if they so desire.

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";
    });
});