Difference between revisions of "HTTPServer"

From Lianjapedia
Jump to: navigation, search
(Events)
(Methods)
Line 30: Line 30:
 
|valign="top"|Stops listening
 
|valign="top"|Stops listening
 
|-
 
|-
 +
|}
 +
 +
====Events====
 +
 +
This class supports the the following events:
 +
 +
{| class="wikitable" width="100%"
 +
!width="20%"|Event
 +
!Args
 +
!width="50%"|Description
 +
|-
 +
|receivedMessage
 +
|message as character
 +
|Event dispatched when data is received on the socket. This method should set the '''responsetext''' if required to send a response to the client on the socket. This event is only dispatched if '''requesthandler''' is set to true.
 +
|-
 +
 
|}
 
|}
  

Revision as of 00:04, 14 May 2024

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Methods

This class supports the following methods:

Method Args Description
IsListening None Returns true if HTTPServer is listening, false otherwise
Listen interface as Character, port as Numeric Starts listening on the specified port on the specified interface ("" for all)
Pause None Pauses listening
Resume None Resumes listening
Stop None Stops listening

Events

This class supports the the following events:

Event Args Description
receivedMessage message as character Event dispatched when data is received on the socket. This method should set the responsetext if required to send a response to the client on the socket. This event is only dispatched if requesthandler is set to true.

See Also

App Settings, Embedded HTTP Server