From 65ac2531c0c08db693eaee8972544601d6163f76 Mon Sep 17 00:00:00 2001 From: Mathieu Ancelin Date: Tue, 6 Feb 2024 11:59:49 +0100 Subject: [PATCH] forgot config function name --- otoroshi/app/next/plugins/websocket.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otoroshi/app/next/plugins/websocket.scala b/otoroshi/app/next/plugins/websocket.scala index 9e65e9a93..6a2ebed6b 100644 --- a/otoroshi/app/next/plugins/websocket.scala +++ b/otoroshi/app/next/plugins/websocket.scala @@ -494,7 +494,7 @@ class WasmWebsocketTransformer extends NgWebsocketPlugin { case Some((vm, localConfig)) => vm.call( WasmFunctionParameters.ExtismFuntionCall( - functionName.getOrElse("on_message"), + config.functionName.filter(_.nonEmpty).orElse(functionName).getOrElse("on_message"), input.stringify ), None