SAPUI5 Demo Applicaiton using ABAP Push Channel (APC, WebSockets). Check out the ABAP Backend setup in the Blog ABAP Push / Messaging Channel and SAPUI5 Demo Application.
Right now the application must be deployed to the ABAP server to be able to connect to the ABAP Push Channel.