status-im / nim-websock

Websocket for Nim
82 stars 15 forks source link

allow passing extra client headers #125

Closed etan-status closed 2 years ago

etan-status commented 2 years ago

nim-websock currently lacks a way to pass additional client headers such as Authorization and Origin which are needed for nimbus-eth2. Adding an extra argument for those opens up swapping from news.

etan-status commented 2 years ago

macos-amd64 (Nim devel) unrelated fail due to could not load: libcrypto.1.1.dylib. Nim devel on macOS temporarily needs brew install openssl@1.1, probably fine to ignore for this PR.

etan-status commented 2 years ago

Ah, just realized, the same functionality could be reached by using the hook system.