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.
API documentationï
Open the ../../apis/library_index.html#http_websocket_handshake link in a web browser.
Loadingï
To load the full library, load the loader.lgt file:
| ?- logtalk_load(http_websocket_handshake(loader)).
Testingï
To test this library, load the tester.lgt file:
| ?- logtalk_load(http_websocket_handshake(tester)).
Current scopeï
The current implementation provides two predicates:
websocket_opening_key/1for generating canonical base64-encoded opening keys.websocket_accept/2for computing canonicalSec-WebSocket-Acceptvalues from valid opening keys.
Current workflowï
Use the websocket_opening_key/1 and websocket_accept/2
predicates only when you need the raw opening-handshake values without
opening a connection.