On Sat, 23 Mar 2019 19:41:58 GMT, Foo Bar wrote:

I just tried using std.concurrency to send the websocket messages between the threads, but now the cpu usage jumped to 14% (from >1%). Why is it doing this?

Also, is it at all possible to be able to pass websockets between threads? It would be a much easier solution.

Thanks!

My mistake. It turns out that the increased cpu usage was from a bug that I introduced earlier. Your original suggestion works great.