Skip to content

Suggestion : Channel Broadcast instead of locale storage  #8

Open

Description

@zakarialaoui10

I suggest to use Channel Broadcast instead of locale storage

Using Channel Broadcast can be a more efficient way to manage communication between components or services compared to local storage, as it allows for real-time updates without the need for persistent storage.

I am already using this approach on similar project
Screenshot_20231124-155728_GitHub.jpg

https://github.com/zakarialaoui10/ziko.js

Activity

  1. changed the title [-]Suggestion [/-] [+]Suggestion : Channel Broadcast instead of locale storage [/+] on Nov 24, 2023
  2. szucsz commented on Nov 25, 2023

    @szucsz

    in case someone is interested, here you can find the window manager implemented with channel broadcast:
    https://github.com/szucsz/multipleWindow3dScene/tree/broadcast-channel

    and the published app:
    https://szucsz.github.io/multipleWindow3dScene/

  3. jiangjiang1235 commented on Nov 26, 2023

    @jiangjiang1235

    I suggest to use Channel Broadcast instead of locale storage
    Scene=new SceneGl ( 400, 400 )

    b=cube3(2)

    Scene .addGl(b)

    c=Ziko. Events. Channel( "test")

    btn("Update Scene Color") .onClick(( )=>[

    const Color=Random.color( )

    Scene . background(Color)

    c. emit("update_ scene_ color", Color

    c. on( "update_ scene_ color" , e=>Scene[0]color(e))

    btn("Update Mesh Color") .onClick(()=>

    const Color=Random.color ( )

    Scene[0] .color (Color)

    c. emit("update mesh_ color" , Color )

    ))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions