subMap in WebSocket module - dead code?
Janiczek opened this issue · comments
Martin Janiczek commented
Is subMap
a dead code, or does it serve eg. as a documentation for people trying to figure out effect managers?
Can it be deleted?
https://github.com/elm-lang/websocket/blob/master/src/WebSocket.elm#L102
Thomas Weiser commented
subMap
is called when the app uses Sub.map
on the subscription. It is one of the functions needed in every effect module
that deals with subscriptions.