| Did you know ... | Search Documentation: |
| Pack logtalk -- logtalk-3.101.0/docs/handbook/_sources/libraries/http_websocket_handshake.rst.txt |
.. _library_http_websocket_handshake:
http_websocket_handshake
This library provides lower-level opening-handshake predicates in the
http_websocket_handshake object that is used by other libraries.
Requires a backend supporting unbound integer arithmetic.
Open the `../../apis/library_index.html#http_websocket_handshake <../../apis/library_index.html#http_websocket_handshake>`__ link in a web browser.
To load the full library, load the loader.lgt file:
::
| ?- logtalk_load(http_websocket_handshake(loader)).
To test this library, load the tester.lgt file:
::
| ?- logtalk_load(http_websocket_handshake(tester)).
The current implementation provides two predicates:
Sec-WebSocket-Accept values from valid opening keys.Use the websocket_opening_key/1 and websocket_accept/2 predicates only when you need the raw opening-handshake values without opening a connection.