Service Message
The service message functionality in the project portal relies on 'fusion core' services. Active messages are obtained from the fusion API endpoint /api/service-messages/active
, and live messages are received through a WebSocket connection from the fusion portal service.
To activate the service message WebSocket service in the fusion framework, the following code is used:
/** Enabling SignalR module for the portal, specifically for service messages */
enableSignalR(
config,
'portal',
signalRConfigurator({
name: 'portal',
service: 'portal',
path: '/signalr/hubs/portal/?negotiateVersion=1',
})
);
The project portal's integration of service messages ensures that messages are scoped to the currently selected application within the chosen context. When a user is in an application and opens the service message side sheet, the messages for the current application will be positioned at the top of the list. These application-specific messages will be expanded, while messages from other applications will remain collapsed.