From 3875a97ad94824556bab7a2bfeac2211381cce50 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 25 Nov 2024 07:41:46 -0500 Subject: [PATCH] Fix #174: o:socket fix (#175) --- .../omnifaces/deployment/OmnifacesProcessor.java | 7 ++++++- .../src/main/resources/META-INF/resources/socket.xhtml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java b/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java index 9f8214c..e419889 100644 --- a/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/omnifaces/deployment/OmnifacesProcessor.java @@ -28,6 +28,8 @@ import org.omnifaces.cdi.ViewScoped; import org.omnifaces.cdi.converter.ConverterManager; import org.omnifaces.cdi.eager.EagerBeansRepository; +import org.omnifaces.cdi.push.SocketChannelManager; +import org.omnifaces.cdi.push.SocketPushContextProducer; import org.omnifaces.cdi.validator.ValidatorManager; import org.omnifaces.cdi.viewscope.ViewScopeManager; import org.omnifaces.resourcehandler.CombinedResourceHandler; @@ -80,7 +82,10 @@ class OmnifacesProcessor { EagerBeansRepository.class, ValidatorManager.class, ViewScopeManager.class, - ConverterManager.class + ConverterManager.class, + SocketChannelManager.class, + SocketPushContextProducer.class, + SocketChannelManager.ViewScope.class }; private static final String[] BEAN_DEFINING_ANNOTATION_CLASSES = { diff --git a/integration-tests/src/main/resources/META-INF/resources/socket.xhtml b/integration-tests/src/main/resources/META-INF/resources/socket.xhtml index 23f3b0c..80493f1 100644 --- a/integration-tests/src/main/resources/META-INF/resources/socket.xhtml +++ b/integration-tests/src/main/resources/META-INF/resources/socket.xhtml @@ -28,6 +28,8 @@ Push - Test + +