Updated: 4/3/2020, 10:08:01 PM
Created: 4/3/2020, 10:08:01 PM
Last Updated By: Mike Street
Read Time: 1 minute(s)
Created At: 6/24/2017 1:10:09 AM
Updated At: 2/9/2018 9:59:38 PM
Original Doc: wsend
Original ID: 260985
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.
# COMMAND SYNTAX
# SYNTAX ELEMENTS
|DATATOSEND ||String you wish to send back to the browser.|
CALL WSEND("Hello World")