jaspervdj / websockets

A Haskell library for creating WebSocket-capable servers
http://jaspervdj.be/websockets
BSD 3-Clause "New" or "Revised" License
407 stars 113 forks source link

Provide the peer address for PendingConnection #206

Open dustin opened 4 years ago

dustin commented 4 years ago

Currently, a websocket server doesn't have any way to identify the source of incoming connections. The most simple use case is logging the address of incoming connections against a server. One could also process requests differently based on incoming address/network.

I see this used to exist, but was reverted in d1f7eeb3f5535a4122336ad43ec6fa4491a074f1 without explanation.

domenkozar commented 9 months ago

It seems to have been reverted because there was no implementation actually get the address.