Updated: 10/14/2021, 2:20:00 PM
Created: 10/14/2021, 2:20:00 PM
Last Updated By: mikes
Read Time: 1 minute(s)

The WSEND subroutine sends content generated by your handler data back to the client.  This is usually HTML, JSON or XML.

You can call WSEND multiple times if your content is generated in stages. After the final call to WSEND, you should call WFLUSH.

WSEND can buffer content for performance or other reasons (see WSETBUFFER). By default buffering is disabled. When buffering is enabled, it is possible to set headers after calling WSEND, but before calling WFLUSH. Otherwise, all headers must be set before the first call to WSEND.

# WSEND Syntax


# Syntax Elements

Parameter Description
DATATOSEND String you wish to send back to the browser.

# WSEND Example

CALL WSEND("Hello World")