Skip to content

Commit 0a5cca8

Browse files
committed
Support Yaffle's polyfill
1 parent 79aa53f commit 0a5cca8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,17 @@ For the moment, there are some difficulties:
1010
- I was hoping to simplify largely its logic, but it's not the case
1111
→ maybe, it will be better if I also refactor code in the Rails part
1212
- 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)
1414
- 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
1616

1717

1818
TODO
1919
----
2020

2121
* Add comments
2222
* ./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
2324

2425

2526
See also

lib/board-linuxfr.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ def response(env)
1515
id, msg = *args
1616
env.logger.debug " -> #{id}. #{msg}"
1717
env.stream_send("data: #{args.last}\nid: #{args.first}\n\n")
18+
env.stream_close if env['HTTP_X_REQUESTED_WITH']
1819
}
1920
event_id = env['HTTP_LAST_EVENT_ID']
2021
chan_name = env['PATH_INFO'].split('/', 3).last

0 commit comments

Comments
 (0)