Network.WebSockets

# Incoming connections and handshaking

data PendingConnection

pendingRequest

acceptRequest

data AcceptRequest

defaultAcceptRequest

acceptRequestWith

rejectRequest

# Main connection type

data Connection

# Options for connections

data ConnectionOptions

defaultConnectionOptions

# Sending and receiving messages

receive

receiveDataMessage

receiveData

send

sendDataMessage

sendTextData

sendTextDatas

sendBinaryData

sendClose

sendPing

# HTTP Types

type Headers

data Request

data RequestHead

getRequestSubprotocols

data Response

data ResponseHead

# WebSocket message types

data Message

data ControlMessage

data DataMessage

class WebSocketsData a

# Exceptions

data HandshakeException

data ConnectionException

# Running a standalone server

type ServerApp

runServer

runServerWith

# Utilities for writing your own server

makeListenSocket

makePendingConnection

makePendingConnectionFromStream

# Running a client

type ClientApp a

runClient

runClientWith

runClientWithSocket

runClientWithStream

# Utilities

forkPingThread