README.md (572B)
1 Kore example of tasks and websockets.
2
3 This example connects Kore via task to a named unix pipe and
4 spews out any output to all connected websocket clients.
5
6 Before you run this make the pipe:
7 $ mkfifo /tmp/pipe
8
9 Run:
10 ```
11 $ kodev run
12 ```
13
14 Test:
15 ```
16 Open a browser that does websockets, surf to https://127.0.0.1:8888
17 or whatever configured IP you have in the config.
18
19 Hit the connect button to open a websocket session.
20
21 Now connect a writer endpoint to the named pipe (/tmp/pipe):
22 $ echo "hello" > /tmp/pipe
23
24 You should see the result in your browser.
25 ```