Add configuration option to control if web socket endpoint callback invocations are run in a worker thread