9 Commits

Author SHA1 Message Date
Denis Palashevskii
36b017bc26
Add events support for WebSockets (#1126)
* Add events support for WebSockets

* Stop reconnection attempts after element has been removed

* Add tests for websockets

* Hide socker wrapper behind a more strict interface to avoid breaking changes in the future

* Fix legacy websocket tests interfering with new extension tests

* Minor doc fixes

* Add `wsBinaryType` configuration option
2022-12-03 16:53:59 -06:00
carson
ce260beb65 enable legacy web socket usage 2022-02-04 19:37:08 -07:00
carson
8ac2baf586 switch to colon separator for sse and ws to avoid comma issues w/ URLs 2020-09-15 12:22:54 -06:00
carson
6083a2ea74 remove bad console logs 2020-06-17 14:58:38 -07:00
carson
b07ed32dc4 selector implementation for processNode 2020-06-17 13:42:18 -07:00
acnebs
d01025823e Rename custom HTTP headers to no longer start with X-
This convention is deprecated, as per this RFC from the IETF: 
https://tools.ietf.org/html/rfc6648
2020-05-28 01:29:51 +01:00
carson
9a4ad77d5d WebSocket and SSE connection closing on element replacement 2020-05-26 06:34:41 -07:00
carson
666b4cbaa8 add tests for SSE and standardize syntax with websockets 2020-05-25 21:56:29 -07:00
carson
51697abff6 revert settle attribute swapping so internals work + hx-ws tests (ugh) 2020-05-25 19:46:10 -07:00