ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > Additional Configuration of WS EMS > Storing Messages Received While WS EMS Is Offline
  
Storing Messages Received While WS EMS Is Offline
The offline_msg_store group is used to configure how the WS EMS handles and stores messages that are received while it is offline.
The following example shows the default configuration. If you do not want to use it, you do not have to change the configuration. When this feature is disabled, the other settings are ignored. However, if you do want to use this store, make sure you set the enabled property to true and add the appropriate directory for storing messages. Depending on the space available on your system, you may also want to change the max_size property.
"offline_msg_store": {
"enabled": true,
"directory" : "/opt/thingworx",
"max_size": 65535
},
The following table lists and describes the properties for storing messages that are received while the WS EMS is offline; it also provides the default values:
Property
Description
enabled
Whether or not the store is enabled.
The default setting of true enables offline message store. Set this property to false to disable it.
directory
The path to the directory of the store where messages are stored.
The default value is "/opt/thingworx", where "/opt/thingworx" is the directory where the WS EMS executable is installed (Linux).
max_size
The maximum size (in bytes) of the directory where messages are stored.
The default value is 65535 bytes.