Tornado Handlers
This handlers are used to configure the Stimuli Delivery.
-
class bci_framework.extensions.stimuli_delivery.tornado_handlers.ModeHandler(application: tornado.web.Application, request: tornado.httputil.HTTPServerRequest, **kwargs: Any)[source]
/mode endpoint to differentiate between Data analysis and Stimuli Delivery.
-
set_default_headers()[source]
Override this to set HTTP headers at the beginning of the request.
For example, this is the place to set a custom Server
header.
Note that setting such headers in the normal flow of request
processing may not do what you want, since headers may be reset
during error handling.
-
class bci_framework.extensions.stimuli_delivery.tornado_handlers.WSHandler(*args, **kwargs)[source]
WebSockets is the way to comunicate between dashboard and presentations.
-
bci_annotation(**kwargs)[source]
Use kafka to stream annotations.
-
bci_feed(**kwargs)[source]
Call the same method in all clients.
-
bci_feedback(**kwargs)[source]
Use kafka to stream annotations.
-
bci_marker(**kwargs)[source]
Use kafka to stream markers.
-
bci_register(**kwargs)[source]
Register clients.
-
on_message(message: bci_framework.extensions.stimuli_delivery.tornado_handlers.json)[source]
Input messages are methods reference with arguments.
The callable are defined with a bci_ prefix in the methods names.
- Parameters
message – json string with method name and key words arguments.