Refactor websocket_interface using proxy interface