CSV Real Time sources

There are two requests when performing real time data-loading, START_LISTENING and STOP_LISTENING. Example of a request to perform a START_LISTENING (listening) operation from a CSV real time source. This request starts the file listener, listening for changes in the given file system:

{
    "operation":"START_LISTEN",
	"topics":["RealTimeTrades"],
	"scope": {
		"CobDate": "2019-01-01"
	}
}

When loading data from a CSV source, the scope in the request payload resolves to a sub-folder in the data root directory.

Example of a request to perform a STOP_LISTENING (listening) operation from a CSV real time source. This request closes or shuts down the file listener; no more changes to the file system will be registered and published:

{
	"operation":"STOP_LISTEN",
	"topics":["RealTimeTrades"],
	"scope": {
		"CobDate": "null"
	}
}

The CodDate scope is null because the stopListening() implementation does NOT accept a scope parameter.

search.js