Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 550 Bytes

architecture.md

File metadata and controls

16 lines (13 loc) · 550 Bytes

Architecture

Javascript implementation

For Javascript the same Go library code is used as WebAssembly. There is a 'thin' javascript wrapper around this that exposes a public API. This abstracts away the implementation details of the underlying protocol. So changes on the Go side often won't need changes in the javascript clients.

flowchart
    subgraph Browser
        Frontend <--JS objects--> Worker
        Worker <--JS object--> WebAssembly
    end
    subgraph Backend
        WebSocket <--binary--> WebAssembly
    end