diff --git a/docs/generated/assets/js/search.js b/docs/generated/assets/js/search.js index 8759962..4401c9d 100644 --- a/docs/generated/assets/js/search.js +++ b/docs/generated/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"us_listen_socket","url":"interfaces/us_listen_socket.html","classes":"tsd-kind-interface"},{"id":1,"kind":256,"name":"WebSocket","url":"interfaces/websocket.html","classes":"tsd-kind-interface"},{"id":2,"kind":2048,"name":"send","url":"interfaces/websocket.html#send","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":3,"kind":2048,"name":"getBufferedAmount","url":"interfaces/websocket.html#getbufferedamount","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":4,"kind":2048,"name":"end","url":"interfaces/websocket.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":5,"kind":2048,"name":"close","url":"interfaces/websocket.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":6,"kind":2048,"name":"ping","url":"interfaces/websocket.html#ping","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":7,"kind":2048,"name":"subscribe","url":"interfaces/websocket.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":8,"kind":2048,"name":"unsubscribe","url":"interfaces/websocket.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":9,"kind":2048,"name":"unsubscribeAll","url":"interfaces/websocket.html#unsubscribeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":10,"kind":2048,"name":"publish","url":"interfaces/websocket.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":11,"kind":2048,"name":"cork","url":"interfaces/websocket.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":12,"kind":2048,"name":"getRemoteAddress","url":"interfaces/websocket.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":13,"kind":256,"name":"HttpResponse","url":"interfaces/httpresponse.html","classes":"tsd-kind-interface"},{"id":14,"kind":2048,"name":"writeStatus","url":"interfaces/httpresponse.html#writestatus","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":15,"kind":2048,"name":"writeHeader","url":"interfaces/httpresponse.html#writeheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":16,"kind":2048,"name":"write","url":"interfaces/httpresponse.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":17,"kind":2048,"name":"end","url":"interfaces/httpresponse.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":18,"kind":2048,"name":"tryEnd","url":"interfaces/httpresponse.html#tryend","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":19,"kind":2048,"name":"close","url":"interfaces/httpresponse.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":20,"kind":2048,"name":"getWriteOffset","url":"interfaces/httpresponse.html#getwriteoffset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":21,"kind":2048,"name":"onWritable","url":"interfaces/httpresponse.html#onwritable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":22,"kind":2048,"name":"onAborted","url":"interfaces/httpresponse.html#onaborted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":23,"kind":2048,"name":"onData","url":"interfaces/httpresponse.html#ondata","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":24,"kind":2048,"name":"getRemoteAddress","url":"interfaces/httpresponse.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":25,"kind":2048,"name":"cork","url":"interfaces/httpresponse.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":26,"kind":256,"name":"HttpRequest","url":"interfaces/httprequest.html","classes":"tsd-kind-interface"},{"id":27,"kind":2048,"name":"getHeader","url":"interfaces/httprequest.html#getheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":28,"kind":2048,"name":"getParameter","url":"interfaces/httprequest.html#getparameter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":29,"kind":2048,"name":"getUrl","url":"interfaces/httprequest.html#geturl","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":30,"kind":2048,"name":"getMethod","url":"interfaces/httprequest.html#getmethod","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":31,"kind":2048,"name":"getQuery","url":"interfaces/httprequest.html#getquery","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":32,"kind":2048,"name":"forEach","url":"interfaces/httprequest.html#foreach","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":33,"kind":2048,"name":"setYield","url":"interfaces/httprequest.html#setyield","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":34,"kind":256,"name":"WebSocketBehavior","url":"interfaces/websocketbehavior.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"maxPayloadLength","url":"interfaces/websocketbehavior.html#maxpayloadlength","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":36,"kind":1024,"name":"idleTimeout","url":"interfaces/websocketbehavior.html#idletimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":37,"kind":1024,"name":"compression","url":"interfaces/websocketbehavior.html#compression","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":38,"kind":1024,"name":"maxBackpressure","url":"interfaces/websocketbehavior.html#maxbackpressure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":39,"kind":1024,"name":"open","url":"interfaces/websocketbehavior.html#open","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":40,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#open.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.open"},{"id":41,"kind":1024,"name":"message","url":"interfaces/websocketbehavior.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":42,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#message.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.message"},{"id":43,"kind":1024,"name":"drain","url":"interfaces/websocketbehavior.html#drain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":44,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#drain.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.drain"},{"id":45,"kind":1024,"name":"close","url":"interfaces/websocketbehavior.html#close","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":46,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#close.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.close"},{"id":47,"kind":1024,"name":"ping","url":"interfaces/websocketbehavior.html#ping","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":48,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#ping.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.ping"},{"id":49,"kind":1024,"name":"pong","url":"interfaces/websocketbehavior.html#pong","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":50,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#pong.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.pong"},{"id":51,"kind":256,"name":"AppOptions","url":"interfaces/appoptions.html","classes":"tsd-kind-interface"},{"id":52,"kind":1024,"name":"key_file_name","url":"interfaces/appoptions.html#key_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":53,"kind":1024,"name":"cert_file_name","url":"interfaces/appoptions.html#cert_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":54,"kind":1024,"name":"passphrase","url":"interfaces/appoptions.html#passphrase","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":55,"kind":1024,"name":"dh_params_file_name","url":"interfaces/appoptions.html#dh_params_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":56,"kind":1024,"name":"ssl_prefer_low_memory_usage","url":"interfaces/appoptions.html#ssl_prefer_low_memory_usage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":57,"kind":256,"name":"TemplatedApp","url":"interfaces/templatedapp.html","classes":"tsd-kind-interface"},{"id":58,"kind":2048,"name":"listen","url":"interfaces/templatedapp.html#listen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":59,"kind":2048,"name":"get","url":"interfaces/templatedapp.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":60,"kind":2048,"name":"post","url":"interfaces/templatedapp.html#post","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":61,"kind":2048,"name":"options","url":"interfaces/templatedapp.html#options","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":62,"kind":2048,"name":"del","url":"interfaces/templatedapp.html#del","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":63,"kind":2048,"name":"patch","url":"interfaces/templatedapp.html#patch","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":64,"kind":2048,"name":"put","url":"interfaces/templatedapp.html#put","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":65,"kind":2048,"name":"head","url":"interfaces/templatedapp.html#head","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":66,"kind":2048,"name":"connect","url":"interfaces/templatedapp.html#connect","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":67,"kind":2048,"name":"trace","url":"interfaces/templatedapp.html#trace","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":68,"kind":2048,"name":"any","url":"interfaces/templatedapp.html#any","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":69,"kind":2048,"name":"ws","url":"interfaces/templatedapp.html#ws","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":70,"kind":2048,"name":"publish","url":"interfaces/templatedapp.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":71,"kind":4194304,"name":"RecognizedString","url":"index.html#recognizedstring","classes":"tsd-kind-type-alias"},{"id":72,"kind":64,"name":"App","url":"index.html#app","classes":"tsd-kind-function"},{"id":73,"kind":64,"name":"SSLApp","url":"index.html#sslapp","classes":"tsd-kind-function"},{"id":74,"kind":64,"name":"us_listen_socket_close","url":"index.html#us_listen_socket_close","classes":"tsd-kind-function"},{"id":75,"kind":4194304,"name":"CompressOptions","url":"index.html#compressoptions","classes":"tsd-kind-type-alias"},{"id":76,"kind":32,"name":"DISABLED","url":"index.html#disabled","classes":"tsd-kind-variable"},{"id":77,"kind":32,"name":"SHARED_COMPRESSOR","url":"index.html#shared_compressor","classes":"tsd-kind-variable"},{"id":78,"kind":32,"name":"DEDICATED_COMPRESSOR","url":"index.html#dedicated_compressor","classes":"tsd-kind-variable"},{"id":79,"kind":32,"name":"DEDICATED_COMPRESSOR_3KB","url":"index.html#dedicated_compressor_3kb","classes":"tsd-kind-variable"},{"id":80,"kind":32,"name":"DEDICATED_COMPRESSOR_4KB","url":"index.html#dedicated_compressor_4kb","classes":"tsd-kind-variable"},{"id":81,"kind":32,"name":"DEDICATED_COMPRESSOR_8KB","url":"index.html#dedicated_compressor_8kb","classes":"tsd-kind-variable"},{"id":82,"kind":32,"name":"DEDICATED_COMPRESSOR_16KB","url":"index.html#dedicated_compressor_16kb","classes":"tsd-kind-variable"},{"id":83,"kind":32,"name":"DEDICATED_COMPRESSOR_32KB","url":"index.html#dedicated_compressor_32kb","classes":"tsd-kind-variable"},{"id":84,"kind":32,"name":"DEDICATED_COMPRESSOR_64KB","url":"index.html#dedicated_compressor_64kb","classes":"tsd-kind-variable"},{"id":85,"kind":32,"name":"DEDICATED_COMPRESSOR_128KB","url":"index.html#dedicated_compressor_128kb","classes":"tsd-kind-variable"},{"id":86,"kind":32,"name":"DEDICATED_COMPRESSOR_256KB","url":"index.html#dedicated_compressor_256kb","classes":"tsd-kind-variable"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"us_listen_socket","url":"interfaces/us_listen_socket.html","classes":"tsd-kind-interface"},{"id":1,"kind":256,"name":"WebSocket","url":"interfaces/websocket.html","classes":"tsd-kind-interface"},{"id":2,"kind":2048,"name":"send","url":"interfaces/websocket.html#send","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":3,"kind":2048,"name":"getBufferedAmount","url":"interfaces/websocket.html#getbufferedamount","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":4,"kind":2048,"name":"end","url":"interfaces/websocket.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":5,"kind":2048,"name":"close","url":"interfaces/websocket.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":6,"kind":2048,"name":"ping","url":"interfaces/websocket.html#ping","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":7,"kind":2048,"name":"subscribe","url":"interfaces/websocket.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":8,"kind":2048,"name":"unsubscribe","url":"interfaces/websocket.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":9,"kind":2048,"name":"unsubscribeAll","url":"interfaces/websocket.html#unsubscribeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":10,"kind":2048,"name":"publish","url":"interfaces/websocket.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":11,"kind":2048,"name":"cork","url":"interfaces/websocket.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":12,"kind":2048,"name":"getRemoteAddress","url":"interfaces/websocket.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":13,"kind":256,"name":"HttpResponse","url":"interfaces/httpresponse.html","classes":"tsd-kind-interface"},{"id":14,"kind":2048,"name":"writeStatus","url":"interfaces/httpresponse.html#writestatus","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":15,"kind":2048,"name":"writeHeader","url":"interfaces/httpresponse.html#writeheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":16,"kind":2048,"name":"write","url":"interfaces/httpresponse.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":17,"kind":2048,"name":"end","url":"interfaces/httpresponse.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":18,"kind":2048,"name":"tryEnd","url":"interfaces/httpresponse.html#tryend","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":19,"kind":2048,"name":"close","url":"interfaces/httpresponse.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":20,"kind":2048,"name":"getWriteOffset","url":"interfaces/httpresponse.html#getwriteoffset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":21,"kind":2048,"name":"onWritable","url":"interfaces/httpresponse.html#onwritable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":22,"kind":2048,"name":"onAborted","url":"interfaces/httpresponse.html#onaborted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":23,"kind":2048,"name":"onData","url":"interfaces/httpresponse.html#ondata","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":24,"kind":2048,"name":"getRemoteAddress","url":"interfaces/httpresponse.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":25,"kind":2048,"name":"cork","url":"interfaces/httpresponse.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":26,"kind":256,"name":"HttpRequest","url":"interfaces/httprequest.html","classes":"tsd-kind-interface"},{"id":27,"kind":2048,"name":"getHeader","url":"interfaces/httprequest.html#getheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":28,"kind":2048,"name":"getParameter","url":"interfaces/httprequest.html#getparameter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":29,"kind":2048,"name":"getUrl","url":"interfaces/httprequest.html#geturl","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":30,"kind":2048,"name":"getMethod","url":"interfaces/httprequest.html#getmethod","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":31,"kind":2048,"name":"getQuery","url":"interfaces/httprequest.html#getquery","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":32,"kind":2048,"name":"forEach","url":"interfaces/httprequest.html#foreach","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":33,"kind":2048,"name":"setYield","url":"interfaces/httprequest.html#setyield","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":34,"kind":256,"name":"WebSocketBehavior","url":"interfaces/websocketbehavior.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"maxPayloadLength","url":"interfaces/websocketbehavior.html#maxpayloadlength","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":36,"kind":1024,"name":"idleTimeout","url":"interfaces/websocketbehavior.html#idletimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":37,"kind":1024,"name":"compression","url":"interfaces/websocketbehavior.html#compression","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":38,"kind":1024,"name":"maxBackpressure","url":"interfaces/websocketbehavior.html#maxbackpressure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":39,"kind":1024,"name":"open","url":"interfaces/websocketbehavior.html#open","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":40,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#open.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.open"},{"id":41,"kind":1024,"name":"message","url":"interfaces/websocketbehavior.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":42,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#message.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.message"},{"id":43,"kind":1024,"name":"drain","url":"interfaces/websocketbehavior.html#drain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":44,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#drain.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.drain"},{"id":45,"kind":1024,"name":"close","url":"interfaces/websocketbehavior.html#close","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":46,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#close.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.close"},{"id":47,"kind":1024,"name":"ping","url":"interfaces/websocketbehavior.html#ping","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":48,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#ping.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.ping"},{"id":49,"kind":1024,"name":"pong","url":"interfaces/websocketbehavior.html#pong","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":50,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#pong.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.pong"},{"id":51,"kind":256,"name":"AppOptions","url":"interfaces/appoptions.html","classes":"tsd-kind-interface"},{"id":52,"kind":1024,"name":"key_file_name","url":"interfaces/appoptions.html#key_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":53,"kind":1024,"name":"cert_file_name","url":"interfaces/appoptions.html#cert_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":54,"kind":1024,"name":"passphrase","url":"interfaces/appoptions.html#passphrase","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":55,"kind":1024,"name":"dh_params_file_name","url":"interfaces/appoptions.html#dh_params_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":56,"kind":1024,"name":"ssl_prefer_low_memory_usage","url":"interfaces/appoptions.html#ssl_prefer_low_memory_usage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":57,"kind":256,"name":"TemplatedApp","url":"interfaces/templatedapp.html","classes":"tsd-kind-interface"},{"id":58,"kind":2048,"name":"listen","url":"interfaces/templatedapp.html#listen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":59,"kind":2048,"name":"get","url":"interfaces/templatedapp.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":60,"kind":2048,"name":"post","url":"interfaces/templatedapp.html#post","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":61,"kind":2048,"name":"options","url":"interfaces/templatedapp.html#options","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":62,"kind":2048,"name":"del","url":"interfaces/templatedapp.html#del","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":63,"kind":2048,"name":"patch","url":"interfaces/templatedapp.html#patch","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":64,"kind":2048,"name":"put","url":"interfaces/templatedapp.html#put","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":65,"kind":2048,"name":"head","url":"interfaces/templatedapp.html#head","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":66,"kind":2048,"name":"connect","url":"interfaces/templatedapp.html#connect","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":67,"kind":2048,"name":"trace","url":"interfaces/templatedapp.html#trace","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":68,"kind":2048,"name":"any","url":"interfaces/templatedapp.html#any","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":69,"kind":2048,"name":"ws","url":"interfaces/templatedapp.html#ws","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":70,"kind":2048,"name":"publish","url":"interfaces/templatedapp.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":71,"kind":4194304,"name":"RecognizedString","url":"index.html#recognizedstring","classes":"tsd-kind-type-alias"},{"id":72,"kind":64,"name":"App","url":"index.html#app","classes":"tsd-kind-function"},{"id":73,"kind":64,"name":"SSLApp","url":"index.html#sslapp","classes":"tsd-kind-function"},{"id":74,"kind":64,"name":"us_listen_socket_close","url":"index.html#us_listen_socket_close","classes":"tsd-kind-function"},{"id":75,"kind":4194304,"name":"CompressOptions","url":"index.html#compressoptions","classes":"tsd-kind-type-alias"},{"id":76,"kind":32,"name":"DISABLED","url":"index.html#disabled","classes":"tsd-kind-variable"},{"id":77,"kind":32,"name":"SHARED_COMPRESSOR","url":"index.html#shared_compressor","classes":"tsd-kind-variable"},{"id":78,"kind":32,"name":"DEDICATED_COMPRESSOR_3KB","url":"index.html#dedicated_compressor_3kb","classes":"tsd-kind-variable"},{"id":79,"kind":32,"name":"DEDICATED_COMPRESSOR_4KB","url":"index.html#dedicated_compressor_4kb","classes":"tsd-kind-variable"},{"id":80,"kind":32,"name":"DEDICATED_COMPRESSOR_8KB","url":"index.html#dedicated_compressor_8kb","classes":"tsd-kind-variable"},{"id":81,"kind":32,"name":"DEDICATED_COMPRESSOR_16KB","url":"index.html#dedicated_compressor_16kb","classes":"tsd-kind-variable"},{"id":82,"kind":32,"name":"DEDICATED_COMPRESSOR_32KB","url":"index.html#dedicated_compressor_32kb","classes":"tsd-kind-variable"},{"id":83,"kind":32,"name":"DEDICATED_COMPRESSOR_64KB","url":"index.html#dedicated_compressor_64kb","classes":"tsd-kind-variable"},{"id":84,"kind":32,"name":"DEDICATED_COMPRESSOR_128KB","url":"index.html#dedicated_compressor_128kb","classes":"tsd-kind-variable"},{"id":85,"kind":32,"name":"DEDICATED_COMPRESSOR_256KB","url":"index.html#dedicated_compressor_256kb","classes":"tsd-kind-variable"}]}; \ No newline at end of file diff --git a/docs/generated/index.html b/docs/generated/index.html index 28cbea7..9207766 100644 --- a/docs/generated/index.html +++ b/docs/generated/index.html @@ -3,7 +3,7 @@ - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -54,7 +54,7 @@ Globals -

    uWebSockets.js v17.3.0 documentation

    +

    uWebSockets.js v17.6.0 documentation

    @@ -87,7 +87,6 @@

    Variables

    Variables

    -
    - -

    DEDICATED_COMPRESSOR

    -
    DEDICATED_COMPRESSOR: CompressOptions
    - -
    -
    -

    Sliding dedicated compress window, requires 256KB of memory per socket

    -
    -
    -

    DEDICATED_COMPRESSOR_128KB

    DEDICATED_COMPRESSOR_128KB: CompressOptions
    @@ -182,7 +167,7 @@
    DEDICATED_COMPRESSOR_16KB: CompressOptions
    @@ -197,7 +182,7 @@
    DEDICATED_COMPRESSOR_256KB: CompressOptions
    @@ -212,7 +197,7 @@
    DEDICATED_COMPRESSOR_32KB: CompressOptions
    @@ -227,7 +212,7 @@
    DEDICATED_COMPRESSOR_3KB: CompressOptions
    @@ -242,7 +227,7 @@
    DEDICATED_COMPRESSOR_4KB: CompressOptions
    @@ -257,7 +242,7 @@
    DEDICATED_COMPRESSOR_64KB: CompressOptions
    @@ -272,7 +257,7 @@
    DEDICATED_COMPRESSOR_8KB: CompressOptions
    @@ -287,12 +272,12 @@
    DISABLED: CompressOptions
    -

    No compression (always a good idea)

    +

    No compression (always a good idea if you operate using an efficient binary protocol)

    @@ -302,12 +287,12 @@
    SHARED_COMPRESSOR: CompressOptions
    -

    Zero memory overhead compression (recommended)

    +

    Zero memory overhead compression (recommended for pub/sub where same message is sent to many receivers)

    @@ -324,12 +309,13 @@
  • -

    Constructs a non-SSL app

    +

    Constructs a non-SSL app. An app is your starting point where you attach behavior to URL routes. + This is also where you listen and run your app, set any SSL options (in case of SSLApp) and the like.

    Parameters

    @@ -352,12 +338,12 @@
  • -

    Constructs an SSL app

    +

    Constructs an SSL app. See App.

    Parameters

    @@ -380,7 +366,7 @@
  • @@ -437,9 +423,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/appoptions.html b/docs/generated/interfaces/appoptions.html index acfa00a..5803898 100644 --- a/docs/generated/interfaces/appoptions.html +++ b/docs/generated/interfaces/appoptions.html @@ -3,7 +3,7 @@ - AppOptions | uWebSockets.js v17.3.0 documentation + AppOptions | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -67,7 +67,8 @@
    -

    Options used when constructing an app.

    +

    Options used when constructing an app. Especially for SSLApp. + These are options passed directly to uSockets, C layer.

    @@ -104,7 +105,7 @@
    cert_file_name: RecognizedString
    @@ -114,7 +115,7 @@
    dh_params_file_name: RecognizedString
    @@ -124,7 +125,7 @@
    key_file_name: RecognizedString
    @@ -134,7 +135,7 @@
    passphrase: RecognizedString
    @@ -144,7 +145,7 @@
    ssl_prefer_low_memory_usage: boolean
    @@ -213,9 +214,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/httprequest.html b/docs/generated/interfaces/httprequest.html index 543b8b8..950246e 100644 --- a/docs/generated/interfaces/httprequest.html +++ b/docs/generated/interfaces/httprequest.html @@ -3,7 +3,7 @@ - HttpRequest | uWebSockets.js v17.3.0 documentation + HttpRequest | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -110,7 +110,7 @@
  • @@ -159,7 +159,7 @@
  • @@ -187,7 +187,7 @@
  • @@ -209,7 +209,7 @@
  • @@ -237,7 +237,7 @@
  • @@ -259,7 +259,7 @@
  • @@ -281,7 +281,7 @@
  • @@ -365,9 +365,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/httpresponse.html b/docs/generated/interfaces/httpresponse.html index 6474de2..1a40e6e 100644 --- a/docs/generated/interfaces/httpresponse.html +++ b/docs/generated/interfaces/httpresponse.html @@ -3,7 +3,7 @@ - HttpResponse | uWebSockets.js v17.3.0 documentation + HttpResponse | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -124,7 +124,7 @@
  • @@ -146,7 +146,7 @@
  • @@ -195,7 +195,7 @@
  • @@ -223,7 +223,7 @@
  • @@ -245,7 +245,7 @@
  • @@ -267,7 +267,7 @@
  • @@ -310,7 +310,7 @@
  • @@ -359,7 +359,7 @@
  • @@ -407,7 +407,7 @@
  • @@ -438,7 +438,7 @@
  • @@ -466,7 +466,7 @@
  • @@ -497,7 +497,7 @@
  • @@ -596,9 +596,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/templatedapp.html b/docs/generated/interfaces/templatedapp.html index 181dde9..cd956d8 100644 --- a/docs/generated/interfaces/templatedapp.html +++ b/docs/generated/interfaces/templatedapp.html @@ -3,7 +3,7 @@ - TemplatedApp | uWebSockets.js v17.3.0 documentation + TemplatedApp | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -67,7 +67,7 @@
    -

    TemplatedApp is either an SSL or non-SSL app.

    +

    TemplatedApp is either an SSL or non-SSL app. See App for more info, read user manual.

    @@ -116,7 +116,7 @@
  • @@ -168,7 +168,7 @@
  • @@ -220,7 +220,7 @@
  • @@ -272,7 +272,7 @@
  • @@ -324,7 +324,7 @@
  • @@ -377,7 +377,7 @@
  • @@ -420,7 +420,7 @@
  • @@ -469,7 +469,7 @@
  • @@ -521,7 +521,7 @@
  • @@ -573,7 +573,7 @@
  • @@ -625,7 +625,7 @@
  • @@ -662,7 +662,7 @@
  • @@ -714,7 +714,7 @@
  • @@ -766,7 +766,7 @@
  • @@ -871,9 +871,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/us_listen_socket.html b/docs/generated/interfaces/us_listen_socket.html index 5acccb5..d6c1fa5 100644 --- a/docs/generated/interfaces/us_listen_socket.html +++ b/docs/generated/interfaces/us_listen_socket.html @@ -3,7 +3,7 @@ - us_listen_socket | uWebSockets.js v17.3.0 documentation + us_listen_socket | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -67,7 +67,8 @@
    -

    Native type representing a raw uSockets struct us_listen_socket.

    +

    Native type representing a raw uSockets struct us_listen_socket. + Careful with this one, it is entirely unchecked and native so invalid usage will blow up.

    @@ -121,9 +122,6 @@
  • RecognizedString
  • -
  • - DEDICATED_COMPRESSOR -
  • DEDICATED_COMPRESSOR_128KB
  • diff --git a/docs/generated/interfaces/websocket.html b/docs/generated/interfaces/websocket.html index 032d8c1..f20cd26 100644 --- a/docs/generated/interfaces/websocket.html +++ b/docs/generated/interfaces/websocket.html @@ -3,7 +3,7 @@ - WebSocket | uWebSockets.js v17.3.0 documentation + WebSocket | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
    @@ -67,7 +67,8 @@
    -

    A WebSocket connection that is valid from open to close event

    +

    A WebSocket connection that is valid from open to close event. + Read more about this in the user manual.

    @@ -84,7 +85,7 @@
    [key: string]: any
    -

    Arbitrary user data may be attached to this object

    +

    Arbitrary user data may be attached to this object. In C++ this is done by using getUserData().

    @@ -123,12 +124,13 @@
  • -

    Forcefully closes this WebSocket

    +

    Forcefully closes this WebSocket. Immediately calls the close handler. + No WebSocket close message is sent.

    Returns WebSocket

    @@ -145,12 +147,12 @@
  • -

    See HttpResponse.cork

    +

    See HttpResponse.cork. Takes a function in which the socket is corked (packing many sends into one single syscall/SSL block)

    Parameters

    @@ -185,12 +187,13 @@
  • -

    Gracefully closes this WebSocket. Immediately calls close handler.

    +

    Gracefully closes this WebSocket. Immediately calls the close handler. + A WebSocket close message is sent with code and shortMessage.

    Parameters

    @@ -216,12 +219,13 @@
  • -

    Returns the bytes buffered in backpressure.

    +

    Returns the bytes buffered in backpressure. This is similar to the bufferedAmount property in the browser counterpart. + Check backpressure example.

    Returns number

    @@ -238,13 +242,16 @@
  • -

    Returns the remote IP address

    +

    Returns the remote IP address. Note that the returned IP is binary, not text.

    +

    IPv4 is 4 byte long and can be converted to text by printing every byte as a digit between 0 and 255. + IPv6 is 16 byte long and can be converted to text in similar ways, but you typically print digits in HEX.

    +

    We will probably add a text converting function at some point as this is a common issue among users.

    Returns ArrayBuffer

  • @@ -260,12 +267,12 @@
  • -

    Sends a ping control message. Returns true on success, see WebSocket.send. This helper function correlates to WebSocket::send(message, uWS::OpCode::PING, ...).

    +

    Sends a ping control message. Returns true on success in similar ways as WebSocket.send does (regarding backpressure). This helper function correlates to WebSocket::send(message, uWS::OpCode::PING, ...) in C++.

    Parameters

    @@ -288,13 +295,19 @@
  • -

    Publish a message to a topic in MQTT syntax

    +

    Publish a message to a topic in MQTT syntax. You cannot publish using wildcards, only fully specified topics. Just like with MQTT.

    +

    "parent/child" kind of tree is allowed, but not "parent/#" kind of wildcard publishing.

    +

    NOTE: publish is NOT immediately active, the actual publish takes place at the end of the current event loop iteration. + This to efficiently pack and batch outgoing publishes, and to coalesce outgoing messages across multiple topics. + Publishing to many different topics, or to the same topic many times, will thus be properly coalesced into one single send syscall and one single SSL block, per socket.

    +

    This also means that publishing to a topic, then immediately subscribing to it in the same very event loop iteration will cause that publish to also affect the late subscription. + Think of it as - subscription vs. publish happens in terms of event loop iterations. If you REQUIRE a strict ordering you have to use Loop::defer or process.nextTick accordingly.

    Parameters

      @@ -325,13 +338,15 @@
    • -

      Sends a message. Make sure to check getBufferedAmount() before sending. Returns true for success, false for built up backpressure that will drain when time is given.

      +

      Sends a message. Make sure to check getBufferedAmount() before sending. Returns true for success, false for built up backpressure that will drain when time is given. + Returning false does not mean nothing was sent, it only means backpressure was built up. This you can check by calling getBufferedAmount() afterwards.

      +

      Make sure you properly understand the contept of backpressure. Check the backpressure example file.

      Parameters

        @@ -359,12 +374,14 @@
      • -

        Subscribe to a topic in MQTT syntax

        +

        Subscribe to a topic in MQTT syntax. Subscription is immediately active. + MQTT syntax includes things like "root/child/+/grandchild" where "+" is a + wildcard and "root/#" where "#" is a terminating wildcard.

        Parameters

        @@ -387,12 +404,12 @@
      • -

        Unsubscribe from a topic. Returns true on success, if the WebSocket was subscribed.

        +

        Unsubscribe from a topic. Returns true on success, if the WebSocket was subscribed. Unsubscription is immediately active.

        Parameters

        @@ -415,12 +432,12 @@
      • -

        Unsubscribe from all topics.

        +

        Unsubscribe from all topics. Immediately active. This is called automatically before any close handler is called, so you never need to call this manually in the close handler of a WebSocket.

        Returns void

        @@ -505,9 +522,6 @@
      • RecognizedString
      • -
      • - DEDICATED_COMPRESSOR -
      • DEDICATED_COMPRESSOR_128KB
      • diff --git a/docs/generated/interfaces/websocketbehavior.html b/docs/generated/interfaces/websocketbehavior.html index 119040c..51ced49 100644 --- a/docs/generated/interfaces/websocketbehavior.html +++ b/docs/generated/interfaces/websocketbehavior.html @@ -3,7 +3,7 @@ - WebSocketBehavior | uWebSockets.js v17.3.0 documentation + WebSocketBehavior | uWebSockets.js v17.6.0 documentation @@ -22,7 +22,7 @@
      • Preparing search index...
      • The search index is not available
      - uWebSockets.js v17.3.0 documentation + uWebSockets.js v17.6.0 documentation
  • @@ -67,7 +67,7 @@
    -

    A structure holding settings and handlers for a WebSocket route handler.

    +

    A structure holding settings and handlers for a WebSocket URL route handler.

    @@ -109,12 +109,12 @@
    close: function
    -

    Handler for close event, no matter if error, timeout or graceful close. You may not use WebSocket after this event.

    +

    Handler for close event, no matter if error, timeout or graceful close. You may not use WebSocket after this event. Do not send on this WebSocket from within here, it is closed.

    @@ -151,12 +151,12 @@
    compression: CompressOptions
    -

    0 = no compression, 1 = shared compressor, 2 = dedicated compressor. See C++ project.

    +

    What permessage-deflate compression to use. uWS.DISABLED, uWS.SHARED_COMPRESSOR or any of the uWS.DEDICATED_COMPRESSOR_xxxKB.

    @@ -166,12 +166,12 @@
    drain: function
    -

    Handler for when WebSocket backpressure drains. Check ws.getBufferedAmount().

    +

    Handler for when WebSocket backpressure drains. Check ws.getBufferedAmount(). Use this to guide / drive your backpressure throttling.

    @@ -202,12 +202,13 @@
    idleTimeout: number
    -

    Maximum amount of seconds that may pass without sending or getting a message.

    +

    Maximum amount of seconds that may pass without sending or getting a message. Connection is closed if this timeout passes. Resolution (granularity) for timeouts are typically 4 seconds, rounded to closest. + Disable by leaving 0.

    @@ -217,12 +218,12 @@
    maxBackpressure: number
    -

    Maximum length of allowed backpressure per socket when publishing messages. Slow receivers, WebSockets, will be disconnected if needed.

    +

    Maximum length of allowed backpressure per socket when PUBLISHING messages (does not apply to ws.send). Slow receivers with too high backpressure will be skipped until they catch up or timeout.

    @@ -232,12 +233,12 @@
    maxPayloadLength: number
    -

    Maximum length of received message.

    +

    Maximum length of received message. If a client tries to send you a message larger than this, the connection is immediately closed.

    @@ -247,12 +248,12 @@
    message: function
    -

    Handler for a WebSocket message.

    +

    Handler for a WebSocket message. Messages are given as ArrayBuffer no matter if they are binary or not. Given ArrayBuffer is valid during the lifetime of this callback (until first await or return) and will be neutered.

    @@ -289,12 +290,13 @@
    open: function
    -

    Handler for new WebSocket connection. WebSocket is valid from open to close, no errors.

    +

    Handler for new WebSocket connection. WebSocket is valid from open to close, no errors. + You may access the HttpRequest during the lifetime of the callback (until first await or return).

    @@ -328,12 +330,12 @@
    ping: function
    -

    Handler for received ping control message.

    +

    Handler for received ping control message. You do not need to handle this, pong messages are automatically sent as per the standard.

    @@ -364,7 +366,7 @@
    pong: function