local function c(c,...)local r={...}local p if isMiddlewareArgument(r)then local n=r local x=n[1]local A=n[2]p=ServerEventV2.new(c,x)return p:Connect(A)else local n=r local x=n[1]p=ServerEventV2.new(c)return p:Connect(x)end end return{default=c}

local function createServerListener(id, ...)
	local args = { ... }
	local event
	if isMiddlewareArgument(args) then
		local _binding = args
		local middleware = _binding[1]
		local connect = _binding[2]
		event = ServerEventV2.new(id, middleware)
		return event:Connect(connect)
	else
		local _binding = args
		local connect = _binding[1]
		event = ServerEventV2.new(id)
		return event:Connect(connect)
	end
end
return {
	default = createServerListener,
}
