def METHOD_NAME(vw, wsname, wsserver, port=viv_server.viv_port):
    try:
        events = vw.exportWorkspace()
        server = viv_server.connectToServer(wsserver, port)
        server.addNewWorkspace(wsname, events)
    except Exception as e:
        vw.vprint('Workspace Server Error: %s' % e)
        import traceback;
        traceback.print_exc()
        return
    vw.setMeta('WorkspaceServer', wsserver)