core.echo0.000001
Responds with a given value.
Arguments
no defined arguments
Return Value
The given value.something went wrong :(
Echoing a value
Setup
authorization=PROCAUTH
require "proc"
client = Proc.connect("PROCAUTH")
const Proc = require("@proc.dev/client");
const client = Proc.connect("PROCAUTH");
client.core.echo.call(
"hello"
)
await client.core.echo.call(
"hello"
);
curl "https://proc.run/core/echo" --silent \
--header "authorization: bearer $authorization" \
--header "content-type: text/plain" \
--data 'hello'
hello
Stuck? Want to chat about an idea? Join the community on Discord.