fix(server) beforeJoin: funcs -> func = []