# WSEND

Updated: 7/8/2020, 5:59:18 PM
Created: 7/8/2020, 5:59:18 PM
Last Updated By: Ryan Medina
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.

# Command Syntax

CALL WSEND(DATATOSEND)
1

# Syntax Elements

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

# Example

CALL WSEND("Hello World")
1