WSForm.UserControl.registerListener method

Description

Use WSForm.UserControl.registerListener to register a function to receive messages from a server-side assembly, through the QueueClientResponse method. This method is similar to the WSUserControl.registerCallback method in previous versions.

Syntax

WSForm.UserControl.registerListener(callbackFn, scope)

Parameters

This table describes the method parameters.

Name Type Description
callbackFn Function Specify this function to call when server-side assembly messages are received.
scope Object Optionally, specify the value of “this” used when the callbackFn function is executed.