Websockets with mitmproxy

Someone tried using websockets with mitmproxy? I need mitmproxy (websocket server) to send and receive messages to/from a javascript client.