/* Ċ Ġ* ĠCopyright ĠÂ© ĠM obi Lab ĠSolutions ĠGmbH Ċ Ġ*/ Ċ Ċ package Ġcom . mob il ab solutions . payment . configuration Ċ Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . messaging . simp . config . Message Broker Registry Ċ import Ġorg . springframework . web . socket . config . annotation . Enable WebSocket Message Broker Ċ import Ġorg . springframework . web . socket . config . annotation . Sto mp Endpoint Registry Ċ import Ġorg . springframework . web . socket . config . annotation . WebSocket Message Broker Configurer Ċ Ċ /** Ċ Ġ* Ġ@ author Ġ< a Ġhref =" mailto : j ov ana @ mob il ab solutions . com "> J ov ana ĠV es kov ic </ a > Ċ Ġ*/ Ċ @ Configuration Ċ @ Enable WebSocket Message Broker Ċ class ĠWebSocket Configuration Ġ: ĠWebSocket Message Broker Configurer Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġconfigure Message Broker ( registry : ĠMessage Broker Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . enable Simple Broker ("/ topic ") ĊĠĠĠĠĠĠĠ Ġregistry . set Application Destination Prefixes ("/ app ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġregister Sto mp Endpoints ( registry : ĠSto mp Endpoint Registry ) Ġ{ ĊĠĠĠĠĠĠĠ Ġregistry . add Endpoint ("/ app "). set Allowed Orig ins ("* "). with Sock JS () ĊĠĠĠ Ġ} Ċ } Ċ