Module

Erl.Gun.WsGun

#WebSocket

newtype WebSocket clientMsg serverMsg

Instances

#WebSocketMessage

data WebSocketMessage clientMsg serverMsg

Constructors

#wsOpen

wsOpen :: forall clientMsg serverMsg. ReadForeign serverMsg => (WebSocketMessage clientMsg serverMsg -> Effect Unit) -> HostAddress -> Port -> IOData -> Effect Unit

Modules