12:21 Altai-man joined 14:03 Altai-man left 14:07 ecocode left 14:08 Altai-man joined 14:12 ecocode joined 15:07 ecocode left 15:12 ecocode joined
Geth cro: 2eb4af983e | (Jonathan Worthington)++ | 2 files
Document Cro::HTTP::Log::File

Closes #109.
Skarsnik How I can use the websocket object inside a websocket route? I went to send my client a message on connection, not sure how since we only got a supply x) 16:59
japhb Skarsnik: MUGS-Core has code for this. Lemme dig it up ... 17:01
github.com/Raku-MUGS/MUGS-Core/blo...et.rakumod and github.com/Raku-MUGS/MUGS-Core/blo...et.rakumod are the two ends of the connection stream. 17:02
github.com/Raku-MUGS/MUGS-Core/blo...es.rakumod is where I convert from route to Connection 17:03
Skarsnik hm, you recreate the whole route thingy? 17:04
jnthnwrthngtn Skarsnik: You return a `supply` block and use `emit` in it to send the message (if you want to send a message on connection, just `emit` it right away)
Roughly: get -> 'ws' { websocket -> $incoming { supply { emit 'Oh hi!'; whenever $incoming -> $msg { #`(handle incoming messages) } } } 17:05
japhb Skarsnik: Mine method is a bit more complicated in order to allow swapping different connection methods. :-) 17:06
17:07 Skarsnik left, Skarsnik joined
Skarsnik Thank :) 17:14
websocket in webasm are not fun 17:15
17:25 TempIRCLogger left, TempIRCLogger joined 17:26 TempIRCLogger left, TempIRCLogger joined, TempIRCLogger left, TempIRCLogger joined 17:41 Altai-man left 21:11 xinming joined 22:43 Xliff left