Creates a TLS Client over WebSocket
Hostname HttpHeader
A Class that can Create an TlsWebSocket to the correct target.
ProtectedsocketProtectedreaderProtectedtimeoutset to debug HttpClient with console.log
Hook method for double verify a connection aber the tls connection has been established.
ProtectedhostnameCallback Method that gets the response bevor its processed by the user.
Callback Method that propagates the status of a HTTP Connection.
StaticgetBuilds the http Request String by parameter
http method
Uri
Headers used in this request
Complete request string
Sets the read timeout in ms
timeout in ms
Returns a PEM string containing of the certificate chain.
PEM string.
ProtectedconnectWaits for the WASM to be loaded, then starts the connection to the WebSocket after that tries to establish a tls connections.
a Promise that resolves after the TLS connection is established, and rejects in case of an error
ProtectedinitTry to establish an Websocket connection threw the tls connection.
Webserver path
Optionalprotocols: string[]optional list of protocols for this socket.
Trigger a GET Request on the server.
Path on the server, will be URL Encoded.
HttpResponse
POST some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Binary data or String that should be send to the client.
Response from the server
PUT some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Binary data or String that should be send to the client.
Response from the server
DELETE some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Optionaldata: string | ArrayBufferLikeBinary data or String that should be send to the client.
Response from the server
OPTIONS some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Response from the server
HEAD some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Response from the server
PATCH some Data to the server. Please be aware that some Servers may require you to set the "Content-Type" header. This will not be done automatically.
URI Path (will be uri encoded)
Binary data or String that should be send to the client.
Response from the server
Optionaldata: string | ArrayBufferLike
HTTPS 1.1 Client that establishes an connection over a websocket. This client uses WASM for the TLS Encryption, WASM Module will be lazy loaded when the constructor is called.