Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 552 Bytes

README.md

File metadata and controls

35 lines (22 loc) · 552 Bytes

(TODO) WebSocket Server binding

Rust library for Calcit runtime.

Usages

currently 3 APIs are provided:

wss.core/wss-serve!
  {} (:port 9000)
  fn (income)
    println income

    wss.core/wss-each! $ fn (id)
      wss.core/wss-send! id $ str "\"hello from: " income

Install to ~/.config/calcit/modules/, compile and provide *.{dylib,so} file with ./build.sh.

Develop

Run buildin demo with:

cr -1 --init-fn wss.test/demo!

Workflow

https://github.com/calcit-lang/dylib-workflow

License

MIT