Commit Graph

11 Commits

Author SHA1 Message Date
andri lim 282773af69
Reduce compiler warnings when using new chronos (#149)
* Reduce compiler warnings when using new chronos

* chronos req

* Reduce more warnings
2024-01-22 19:08:17 +07:00
Etan Kissling f8ed9b40a5
replace `utils` module with direct `generate` calls (#148)
The `utils` module uses a convoluted mechanism for filling byte arrays
with random data. The `generate` function can be used directly, making
the `utils` module obsolete.
2023-07-24 22:38:21 +02:00
Tanguy cf8b8ce235
Remove newRng (#132) 2022-11-21 19:29:20 +01:00
Etan Kissling 2424f2b215
configure SNI hostname when connecting WSS (#128)
When connecting to WebSocket via TLS, certain servers require hostname
to be sent as part of SNI extension. This was done when using `news`
backend, but not when using `nim-websock` backend. Aligned both impls.
2022-09-16 21:38:37 +02:00
jangko 4a7a058843
add http header hook
fix #101
2022-03-16 08:24:16 +07:00
Mark Spanbroek 80f62e8fdd Remove unused imports 2021-09-21 09:44:07 +02:00
Tanguy e199aa57da
Handle hostname option properly (#92) 2021-09-20 15:55:38 +02:00
Dmitriy Ryajov 2af07c5736
"Host" header override (#87)
Override "Host" header for externally resolved addresses
2021-07-28 11:54:09 -06:00
Dmitriy Ryajov 06ae75cf7f
add support for DNS resolution (#81)
* add support for DNS resolution

- reworked API to be more consistent
  - string addresses and Uri types will be now resolved
- made the API more consistent

* log failed connection attempt

* agent string can't contain spaces

* add websock topic (#83)

* style

Co-authored-by: Tanguy Cizain <tanguycizain@gmail.com>
2021-07-14 18:51:39 -06:00
Tanguy Cizain fec0f2bac1
add websock topic (#83) 2021-07-14 11:26:46 -06:00
jangko b3c60bbd4e
rename nim-ws to nim-websock 2021-06-29 08:50:29 +07:00