twelve_service 0.1.4

Just for demo
/*
### ENV setting
*/
@host= localhost
@port= 8080
@base_url= http://{{host}}:{{port}}
/*
### Get version
*/
###

GET {{base_url}}/version HTTP/2.0

HTTP/1.1 200  - OK
content-length: 83
connection: close
content-type: application/json
date: Tue, 13 Aug 2024 05:57:45 GMT
###
WS ws://localhost:8080/ws

{
    "test": "httpyac"
}

{{@streaming
    async function writeStream(){
        await sleep(100);
        $requestClient.send({
            "event": "ping",
            "reqid": 45
        });
        await sleep(100);
        $requestClient.send("/name Joe");
        await sleep(100);
        $requestClient.send("/list-rooms");
        await sleep(100);
        $requestClient.send("/join other-room");
        await sleep(100);
        $requestClient.send("/list-rooms");
        await sleep(100);
        $requestClient.send("/list-users");
        await sleep(100);
        $requestClient.send("/unknown command, -_-!");
        await sleep(100);
    }
    exports.waitPromise = writeStream();
}}


WS 0 
date: "2024-08-16T08:50:08.356Z"
###
WS 0 
date: "2024-08-16T00:39:40.605Z"