Skip to content

Commit

Permalink
use stdout.write buffer to echo/reflect *live* happenings in the we…
Browse files Browse the repository at this point in the history
…b terminal (even works with `less` paging)
  • Loading branch information
loveencounterflow committed Mar 29, 2022
1 parent 21c6ca1 commit 3768e37
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/cli.coffee
Expand Up @@ -114,7 +114,8 @@ demo_websocket = ( pid ) =>
urge "^445-23^ websocket open"
ws.send 'helo from server'
ws.on 'message', ( data ) =>
urge "^445-23^ received: #{rpr data}"
# urge "^445-23^ received: #{rpr data.toString()}"
process.stdout.write data # .toString()
return null


Expand Down

0 comments on commit 3768e37

Please sign in to comment.