https://github.com/abap2ui5-addons/websocket
Websocket for abap2UI5
https://github.com/abap2ui5-addons/websocket
abap abap2ui5 abapgit fiori open-source openui5 sapui5 ui5
Last synced: about 1 year ago
JSON representation
Websocket for abap2UI5
- Host: GitHub
- URL: https://github.com/abap2ui5-addons/websocket
- Owner: abap2UI5-addons
- License: mit
- Created: 2024-08-27T15:02:24.000Z (over 1 year ago)
- Default Branch: standard
- Last Pushed: 2025-02-28T19:30:17.000Z (about 1 year ago)
- Last Synced: 2025-02-28T22:59:12.394Z (about 1 year ago)
- Topics: abap, abap2ui5, abapgit, fiori, open-source, openui5, sapui5, ui5
- Language: ABAP
- Homepage:
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## websocket
Work in progress... 🚧 🏗️ 🦺
### Installation
Install with **[abapGit](https://abapgit.org/)** and extend your HTTP handler with:
```abap
METHOD if_http_extension~handle_request.
DATA(response) = z2ui5_cl_http_handler=>main(
body = server->request->get_cdata( )
config = VALUE #( custom_js = z2ui5add_cl_cc_websocket=>get_js( ) )
).
server->response->set_cdata( response ).
server->response->set_header_field( name = `cache-control` value = `no-cache` ).
server->response->set_status( code = 200 reason = `success` ).
ENDMETHOD.
```