ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > REST Web Services Supported by WS EMS > HasEdgeThing
  
HasEdgeThing
The HasEdgeThing service checks whether a certain thing is connected to the WS EMS.
Inputs
You can pass in raw JSON or an infotable that contains the name of the thing whose connection you want to check:
TW_INFOTABLE, that contains the name of the thing to check. The infotable can be passed in as raw json. For example, {"name":"ThingName"}
Outputs
TW_INFOTABLE, which contains the result, as TW_BOOLEAN. Returns true if the specified thing is connected, false otherwise.
Here is an example of a REST call that determines if a specified edge thing is connected to a WS EMS:
http://localhost:8000/Thingworx/Things/LocalEms/Services/
HasEdgeThing{"name":"acmeEdgeThing1"}