Module org.omnifaces
Package org.omnifaces.cdi.push
package org.omnifaces.cdi.push
-
ClassDescriptionThe
<o:notification>is aUIComponentwhich integrates the browser Web Notifications API with SSE (Server-Sent Events) based push.Represents a notification message for use withPushContext.send().This CDI extension detects@Inject @Push PushContextinjection points during bean discovery.The<o:socket>is anUIComponentwhith opens an one-way (server to client) web socket based push connection in client side which can be reached from server side viaPushContextinterface injected in any CDI/container managed artifact via@Pushannotation.This web socket channel manager holds all application and session scoped web socket channel identifiers registered by<o:socket>.This helps the web socket channel manager to hold view scoped web socket channel identifiers registered by<o:socket>.This web socket endpoint handles connections opened by<o:socket>.This web socket event will be fired bySocketSessionManagerwhen a web socket has been@SocketEvent.Opened,@SocketEvent.Switchedor@SocketEvent.Closed.Indicates that a web socket has closed.Indicates that a web socket has opened.Indicates that a web socket user was switched.This Faces listener forUIViewRootensures that the necessary JavaScript code to open or close theWebSocketis properly rendered.This is a concrete web socket implementation ofPushContextinterface which is to be injected by@Push.Deprecated, for removal: This API element is subject to removal in a future version.Since 5.2.This web socket session manager holds all web socket sessions by their channel identifier.This web socket user manager holds all web socket users registered by<o:socket>.The<o:sse>is anUIComponentwhich opens an one-way (server to client) SSE (Server-Sent Events) based push connection in client side which can be reached from server side viaPushContextinterface injected in any CDI/container managed artifact via@Push(type=SSE)annotation.This SSE channel manager holds all application and session scoped SSE channel identifiers registered by<o:sse>.This helps the SSE channel manager to hold view scoped SSE channel identifiers registered by<o:sse>.This SSE endpoint handles connections opened by<o:sse>and<o:notification>.This SSE event will be fired bySseSessionManagerwhen an SSE connection has been@SseEvent.Opened,@SseEvent.Switchedor@SseEvent.Closed.Indicates that a SSE channel has closed.Indicates that a SSE channel has opened.Indicates that a SSE user was switched.This is a concrete SSE implementation ofPushContextinterface which is to be injected by@Push(type=SSE)or@Push(type=NOTIFICATION).This SSE session manager holds all SSE connections by their channel identifier.This SSE user manager holds all SSE users registered by<o:sse>.