how to report the custom statistics data to ngrinder from the non worker thread
Currently i am using ngrinder to perform test on application which is based on websocket connection. In my script i have a websocket client to send message, and the client have a onMessage method to receive the reponse asynchronize in another thread. i calc the latency from the message send to message receive in the websocket client and want to send it to ngrinder using follow statement:
grinder.statistics.registerSummaryExpression('Publish time delay', 'userLong0')
There is exception "Statistics interface is only supported for worker threads." throw out from ScriptStatisticsImplementation, because the thread to set statistics is not a worker thread and cannot get the threadcontext, is there any solution to fix this?