WebSocket server and middleware for WorkJS