https://kotlinlang.org logo
Title
n

Nikky

10/20/2020, 6:05 PM
so.. i stumbled over those old proof of concept from someone doing websockets in remotes/stores and this seems to be the only code that seems to be broken when updating it to latest.. and i am not sure what to replace the calls with https://github.com/Luftzig/fritz2-stores/blob/1dfad499d2c2b109bd211e8266337b7f811542af/src/jsMain/kotlin/dev/fritz2/binding/rest.kt#L19-L25 specifically
Store::apply
does not seem to exist anymore and
andThen
i guess
b

Big Chungus

10/20/2020, 6:50 PM
Websockets are actively being developed right now (looking at recent commits). Give it another month or so (if you can ofc and this is just me personal guestimate) and those should come out of the box.
On a side note, you could use a normal store and just send state from websockets messages via action() handledBy store
n

Nikky

10/20/2020, 9:15 PM
i hope that is the case.. then i guess i will wait rather and keep a look out on released features
i want to implement a multiplayer card game with websockets because polling seems.. suboptimal
j

Jens Stegemann

11/18/2020, 9:27 AM
Sorry for getting back to this that late. WebSockets will be included in 0.8 (already in 0.8-SNAPSHOT).
🎉 1
Would be great to have an example using it...