Connect middleware for WAMI Recorder