File tree Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Expand file tree Collapse file tree 3 files changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -2,32 +2,23 @@ Board for LinuxFr.org
2
2
=====================
3
3
4
4
Users of the LinuxFr.org website can chat on a space called the board
5
- (« la tribune » in french). This is an experiment for notifying the users
5
+ (« la tribune » in french). This Ruby daemon notifies the users
6
6
when something is said with Server-Sent Event / EventSource.
7
7
8
- For the moment, there are some difficulties:
9
8
10
- - I was hoping to simplify largely its logic, but it's not the case
11
- → maybe, it will be better if I also refactor code in the Rails part
12
- - Goliath can't listen on UNIX socket
13
- → it's no longer the case (fixed in v0.9.3)
14
- - EventSource is not supported by most browsers
15
- → Not true, and https://github.com/Yaffle/EventSource is a good polyfill
9
+ How to use it?
10
+ --------------
16
11
17
-
18
- TODO
19
- ----
20
-
21
- * Add comments
22
- * ./bin/board-linuxfr -svS ../board.sock
23
- * board-linuxfr -v -S /data/alpha/alpha/board/board.sock -l /data/alpha/alpha/board/board.log -P /data/alpha/alpha/board/board.pid -d
12
+ Install it with ` gem install board-linuxfr ` .
13
+ Then, you can launch it on local with ` board-linuxfr -S /tmp/board.sock `
14
+ and it will listen on a UNIX socket at ` /tmp/board.sock ` .
24
15
25
16
26
17
See also
27
18
--------
28
19
29
20
* [ Git repository] ( http://github.com/nono/board-sse-LinuxFr.org )
30
- * [ Current board ] ( https://github.com/nono/Board-LinuxFr.org )
21
+ * [ Rubygems page ] ( https://rubygems.org/gems/board-linuxfr )
31
22
32
23
33
24
Copyright
Original file line number Diff line number Diff line change @@ -13,7 +13,6 @@ def response(env)
13
13
env . logger . info "New client: #{ env [ 'PATH_INFO' ] } "
14
14
send_msg = -> ( args ) {
15
15
id , msg = *args
16
- env . logger . debug " -> #{ id } . #{ msg } "
17
16
env . stream_send ( "data: #{ args . last } \n id: #{ args . first } \n \n " )
18
17
env . stream_close if env [ 'HTTP_X_REQUESTED_WITH' ]
19
18
}
Original file line number Diff line number Diff line change 1
1
class BoardLinuxfr
2
- VERSION = "0.0.1 "
2
+ VERSION = "0.1.0 "
3
3
end
You can’t perform that action at this time.
0 commit comments