File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,16 +10,17 @@ For the moment, there are some difficulties:
10
10
- I was hoping to simplify largely its logic, but it's not the case
11
11
→ maybe, it will be better if I also refactor code in the Rails part
12
12
- Goliath can't listen on UNIX socket
13
- → it's no longer the case (fixed in the git repository )
13
+ → it's no longer the case (fixed in v0.9.3 )
14
14
- EventSource is not supported by most browsers
15
- → I need to try the polyfills
15
+ → Not true, and https://github.com/Yaffle/EventSource is a good polyfill
16
16
17
17
18
18
TODO
19
19
----
20
20
21
21
* Add comments
22
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
23
24
24
25
25
26
See also
Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ def response(env)
15
15
id , msg = *args
16
16
env . logger . debug " -> #{ id } . #{ msg } "
17
17
env . stream_send ( "data: #{ args . last } \n id: #{ args . first } \n \n " )
18
+ env . stream_close if env [ 'HTTP_X_REQUESTED_WITH' ]
18
19
}
19
20
event_id = env [ 'HTTP_LAST_EVENT_ID' ]
20
21
chan_name = env [ 'PATH_INFO' ] . split ( '/' , 3 ) . last
You can’t perform that action at this time.
0 commit comments