**This is an old revision of the document!**

Component: Internet

This component is provided by the Internet Card

Component name: internet. Callbacks:

  • isTcpEnabled():boolean
    Returns whether TCP connections can be made (config setting).
  • isHttpEnabled():boolean
    Returns whether HTTP requests can be made (config setting).
  • connect(address:string[, port:number]):userdata
    Opens a new TCP connection. Returns the handle of the connection.
  • request(url:string[, postData:string]):userdata
    Starts an HTTP request. If this returns true, further results will be pushed using http_response signals.