initial extracation of websocket mpd client