CSV Listen Sources

There are two Operations when performing real time data-loading, START_LISTENING and STOP_LISTENING. Below is an example of a JSON request to perform a START_LISTENING (listening) operation from a CSV Listening 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.

Below is an 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