← Recipe: call a server function

8. Check and run

generated Luau client · trusted JavaScript handler · about 25 minutes
generate → check → test → live local RPC

The first three commands verify files and types; the preview then exercises the real local handler boundary.

When to use it

Run from server-recipe after all five authored files are saved. Leave luastra run active while testing the browser flow.

  • generate, check, and test must report PASS with one passing test.
  • The browser request reaches the trusted local handler served by luastra run.
  • Try a one-character name: expect VALIDATION and the handler message without a client crash.
  • The numeric RequestId only correlates completion; it is never the operation result.

Focused example

luastra generate
luastra check
luastra test
luastra run
# Open the printed local URL and press Ask the server.
# Expect: Hello, Ada!

Complete inventory

View all pages in Recipe: call a server function
← Previous: 7. Replace tests/smoke.luauNext: 9. Follow one request →