Method WebSocketClient():new() Professional

Creates an instance of the WebSocketClient class

Syntax
:new( <cServerName> ,[<cTarget>] ,[<nPort>], [<cClientName>] ) --> self
Parameters
<cServerName>
This parameter is a character string containing the DNS name or the IP address of the server the client wants to connect to.
<cTarget>
The optional parameter cTarget is a character string specifying the resource name requested from the server. If no argument was passed then cTarget defaults to an empty string ("").
<nPort>
The optional parameter nPort is a numeric value specifying the server port the client is connecting to. If no argument was passed then nPort defaults to 80.
<cClientName>
The optional parameter cClientName is a character string specifying the hostname from which the client is connecting to the server. If no argument was passed then cClientName defaults to the environment variable COMPUTERNAME.
Return

This method returns an instance of the WebSocketClient class.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.