---#API
---#content ---
---#content title: 进程内的订阅同步-可热更服务的接口
---#content date: 2024-06-29 22:00:00
---#content categories: ["skynet_fly API 文档","订阅发布，订阅同步"]
---#content category_bar: true
---#content tags: [skynet_fly_api]
---#content ---
---#content [contriner_watch_interface](https://github.com/huahua132/skynet_fly/blob/master/lualib/skynet-fly/watch/contriner_watch_interface.lua)

local contriner_client = require "skynet-fly.client.contriner_client"
local setmetatable = setmetatable

local M = {}
local mt = {__index = M}
---#desc 可热更模块接口
---@param mod_name string 可热更服务模块名
---@param instance_name string 可热更服务模块实例名
---@return table obj
function M:new(mod_name, instance_name)
    local t = {
        cli = contriner_client:new(mod_name, instance_name)
    }

    setmetatable(t, mt)
    return t
end

function M:send(...)
    return self.cli:mod_send(...)
end

function M:call(...)
    return self.cli:mod_call(...)
end

return M