elm-lang / websocket

Websockets for Elm

Home Page:http://package.elm-lang.org/packages/elm-lang/websocket/latest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

subMap in WebSocket module - dead code?

Janiczek opened this issue · comments

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

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.