moonbitstack/moonasgi/ws does not have a README file
fn WebSocketHandler::new(on_connect? : (WebSocketScope) -> WsAccept, on_receive? : (WsMessage) -> Array[WsSend], on_disconnect? : (Int, String?) -> Array[WsSend]) -> WebSocketHandlerpub(all) enum WsSend {
SendText(String)
SendBinary(Bytes)
Close(code~ : Int, reason~ : String)
} derive(Eq)Install
Download zipThe ASGI interface for MoonBit: servers, applications and the middleware between them.