wuss-1.0.0: Secure WebSocket (WSS) clients

Safe HaskellNone
LanguageHaskell2010

Wuss

Synopsis

Documentation

runSecureClient Source

Arguments

:: HostName

Host

-> PortNumber

Port

-> String

Path

-> ClientApp a

Application

-> IO a 
>>> let app _connection = return ()
>>> runSecureClient "echo.websocket.org" 443 "/" app

runSecureClientWith Source

Arguments

:: HostName

Host

-> PortNumber

Port

-> String

Path

-> ConnectionOptions

Options

-> Headers

Headers

-> ClientApp a

Application

-> IO a 
>>> let options = defaultConnectionOptions
>>> let headers = []
>>> let app _connection = return ()
>>> runSecureClientWith "echo.websocket.org" 443 "/" options headers app