gi-soup3
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Soup.Objects.WebsocketConnection

Description

The WebSocket Protocol

Provides support for the WebSocket protocol.

To connect to a WebSocket server, create a [classsession] and call [methodsession.websocket_connect_async]. To accept WebSocket connections, create a [classserver] and add a handler to it with [methodserver.add_websocket_handler].

(Lower-level support is available via [funcwebsocketClientPrepareHandshake] and [funcwebsocketClientVerifyHandshake], for handling the client side of the WebSocket handshake, and [funcwebsocketServerProcessHandshake] for handling the server side.)

WebsocketConnection handles the details of WebSocket communication. You can use [methodwebsocketConnection.send_text] and [methodwebsocketConnection.send_binary] to send data, and the signalwebsocketConnection[message] signal to receive data. (tWebsocketConnection currently only supports asynchronous I/O.)

Synopsis

Exported types

newtype WebsocketConnection Source #

Memory-managed wrapper type.

Instances

Instances details
Eq WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

GObject WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

ManagedPtrNewtype WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

TypedObject WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Methods

glibType :: IO GType #

HasParentTypes WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

HasAttributeList WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

(info ~ ResolveWebsocketConnectionMethod t WebsocketConnection, OverloadedMethod info WebsocketConnection p, HasField t WebsocketConnection p) => HasField (t :: Symbol) WebsocketConnection (p :: Type) Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

(info ~ ResolveWebsocketConnectionMethod t WebsocketConnection, OverloadedMethodInfo info WebsocketConnection) => IsLabel t (MethodProxy info WebsocketConnection) Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

(info ~ ResolveWebsocketConnectionMethod t WebsocketConnection, OverloadedMethod info WebsocketConnection p) => IsLabel t (WebsocketConnection -> p) Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

IsGValue (Maybe WebsocketConnection) Source #

Convert WebsocketConnection to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttributeList WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type ParentTypes WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type SignalList WebsocketConnection Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

class (GObject o, IsDescendantOf WebsocketConnection o) => IsWebsocketConnection o Source #

Type class for types which can be safely cast to WebsocketConnection, for instance with toWebsocketConnection.

Instances

Instances details
(GObject o, IsDescendantOf WebsocketConnection o) => IsWebsocketConnection o Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

toWebsocketConnection :: (MonadIO m, IsWebsocketConnection o) => o -> m WebsocketConnection Source #

Cast to WebsocketConnection, for types for which this is known to be safe. For general casts, use castTo.

Methods

type family ResolveWebsocketConnectionMethod (t :: Symbol) o where ... Source #

Equations

ResolveWebsocketConnectionMethod "bindProperty" o = ObjectBindPropertyMethodInfo 
ResolveWebsocketConnectionMethod "bindPropertyFull" o = ObjectBindPropertyFullMethodInfo 
ResolveWebsocketConnectionMethod "close" o = WebsocketConnectionCloseMethodInfo 
ResolveWebsocketConnectionMethod "forceFloating" o = ObjectForceFloatingMethodInfo 
ResolveWebsocketConnectionMethod "freezeNotify" o = ObjectFreezeNotifyMethodInfo 
ResolveWebsocketConnectionMethod "getv" o = ObjectGetvMethodInfo 
ResolveWebsocketConnectionMethod "isFloating" o = ObjectIsFloatingMethodInfo 
ResolveWebsocketConnectionMethod "notify" o = ObjectNotifyMethodInfo 
ResolveWebsocketConnectionMethod "notifyByPspec" o = ObjectNotifyByPspecMethodInfo 
ResolveWebsocketConnectionMethod "ref" o = ObjectRefMethodInfo 
ResolveWebsocketConnectionMethod "refSink" o = ObjectRefSinkMethodInfo 
ResolveWebsocketConnectionMethod "runDispose" o = ObjectRunDisposeMethodInfo 
ResolveWebsocketConnectionMethod "sendBinary" o = WebsocketConnectionSendBinaryMethodInfo 
ResolveWebsocketConnectionMethod "sendMessage" o = WebsocketConnectionSendMessageMethodInfo 
ResolveWebsocketConnectionMethod "sendText" o = WebsocketConnectionSendTextMethodInfo 
ResolveWebsocketConnectionMethod "stealData" o = ObjectStealDataMethodInfo 
ResolveWebsocketConnectionMethod "stealQdata" o = ObjectStealQdataMethodInfo 
ResolveWebsocketConnectionMethod "thawNotify" o = ObjectThawNotifyMethodInfo 
ResolveWebsocketConnectionMethod "unref" o = ObjectUnrefMethodInfo 
ResolveWebsocketConnectionMethod "watchClosure" o = ObjectWatchClosureMethodInfo 
ResolveWebsocketConnectionMethod "getCloseCode" o = WebsocketConnectionGetCloseCodeMethodInfo 
ResolveWebsocketConnectionMethod "getCloseData" o = WebsocketConnectionGetCloseDataMethodInfo 
ResolveWebsocketConnectionMethod "getConnectionType" o = WebsocketConnectionGetConnectionTypeMethodInfo 
ResolveWebsocketConnectionMethod "getData" o = ObjectGetDataMethodInfo 
ResolveWebsocketConnectionMethod "getExtensions" o = WebsocketConnectionGetExtensionsMethodInfo 
ResolveWebsocketConnectionMethod "getIoStream" o = WebsocketConnectionGetIoStreamMethodInfo 
ResolveWebsocketConnectionMethod "getKeepaliveInterval" o = WebsocketConnectionGetKeepaliveIntervalMethodInfo 
ResolveWebsocketConnectionMethod "getMaxIncomingPayloadSize" o = WebsocketConnectionGetMaxIncomingPayloadSizeMethodInfo 
ResolveWebsocketConnectionMethod "getOrigin" o = WebsocketConnectionGetOriginMethodInfo 
ResolveWebsocketConnectionMethod "getProperty" o = ObjectGetPropertyMethodInfo 
ResolveWebsocketConnectionMethod "getProtocol" o = WebsocketConnectionGetProtocolMethodInfo 
ResolveWebsocketConnectionMethod "getQdata" o = ObjectGetQdataMethodInfo 
ResolveWebsocketConnectionMethod "getState" o = WebsocketConnectionGetStateMethodInfo 
ResolveWebsocketConnectionMethod "getUri" o = WebsocketConnectionGetUriMethodInfo 
ResolveWebsocketConnectionMethod "setData" o = ObjectSetDataMethodInfo 
ResolveWebsocketConnectionMethod "setDataFull" o = ObjectSetDataFullMethodInfo 
ResolveWebsocketConnectionMethod "setKeepaliveInterval" o = WebsocketConnectionSetKeepaliveIntervalMethodInfo 
ResolveWebsocketConnectionMethod "setMaxIncomingPayloadSize" o = WebsocketConnectionSetMaxIncomingPayloadSizeMethodInfo 
ResolveWebsocketConnectionMethod "setProperty" o = ObjectSetPropertyMethodInfo 
ResolveWebsocketConnectionMethod l o = MethodResolutionFailed l o :: Type 

close

websocketConnectionClose Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> CUShort

code: close code

-> Maybe Text

data: close data

-> m () 

Close the connection in an orderly fashion.

Note that until the signalwebsocketConnection[closed] signal fires, the connection is not yet completely closed. The close message is not even sent until the main loop runs.

The code and data are sent to the peer along with the close request. If code is WebsocketCloseCodeNoStatus a close message with no body (without code and data) is sent. Note that the data must be UTF-8 valid.

getCloseCode

websocketConnectionGetCloseCode Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m CUShort

Returns: the close code or zero.

Get the close code received from the WebSocket peer.

This only becomes valid once the WebSocket is in the WebsocketStateClosed state. The value will often be in the [enumwebsocketCloseCode] enumeration, but may also be an application defined close code.

getCloseData

websocketConnectionGetCloseData Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m Text

Returns: the close data or Nothing

Get the close data received from the WebSocket peer.

This only becomes valid once the WebSocket is in the WebsocketStateClosed state. The data may be freed once the main loop is run, so copy it if you need to keep it around.

getConnectionType

websocketConnectionGetConnectionType Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m WebsocketConnectionType

Returns: the connection type

Get the connection type (client/server) of the connection.

getExtensions

websocketConnectionGetExtensions Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m [WebsocketExtension]

Returns: a List of WebsocketExtension objects

Get the extensions chosen via negotiation with the peer.

getIoStream

websocketConnectionGetIoStream Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m IOStream

Returns: the WebSocket's I/O stream.

Get the I/O stream the WebSocket is communicating over.

getKeepaliveInterval

websocketConnectionGetKeepaliveInterval Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m Word32

Returns: the keepalive interval.

Gets the keepalive interval in seconds or 0 if disabled.

getMaxIncomingPayloadSize

websocketConnectionGetMaxIncomingPayloadSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m Word64

Returns: the maximum payload size.

Gets the maximum payload size allowed for incoming packets.

getOrigin

websocketConnectionGetOrigin Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m (Maybe Text)

Returns: the origin

Get the origin of the WebSocket.

getProtocol

websocketConnectionGetProtocol Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m (Maybe Text)

Returns: the chosen protocol

Get the protocol chosen via negotiation with the peer.

getState

websocketConnectionGetState Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m WebsocketState

Returns: the state

Get the current state of the WebSocket.

getUri

websocketConnectionGetUri Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> m Uri

Returns: the URI

Get the URI of the WebSocket.

For servers this represents the address of the WebSocket, and for clients it is the address connected to.

new

websocketConnectionNew Source #

Arguments

:: (HasCallStack, MonadIO m, IsIOStream a, IsWebsocketExtension b) 
=> a

stream: a IOStream connected to the WebSocket server

-> Uri

uri: the URI of the connection

-> WebsocketConnectionType

type: the type of connection (client/side)

-> Maybe Text

origin: the Origin of the client

-> Maybe Text

protocol: the subprotocol in use

-> [b]

extensions: a List of WebsocketExtension objects

-> m WebsocketConnection

Returns: a new WebsocketConnection

Creates a WebsocketConnection on stream with the given active extensions.

This should be called after completing the handshake to begin using the WebSocket protocol.

sendBinary

websocketConnectionSendBinary Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> Maybe ByteString

data: the message contents

-> m () 

Send a binary message to the peer.

If length is 0, data may be Nothing.

The message is queued to be sent and will be sent when the main loop is run.

sendMessage

websocketConnectionSendMessage Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> WebsocketDataType

type: the type of message contents

-> Bytes

message: the message data as Bytes

-> m () 

Send a message of the given type to the peer. Note that this method, allows to send text messages containing Nothing characters.

The message is queued to be sent and will be sent when the main loop is run.

sendText

websocketConnectionSendText Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> Text

text: the message contents

-> m () 

Send a Nothing-terminated text (UTF-8) message to the peer.

If you need to send text messages containing Nothing characters use [methodwebsocketConnection.send_message] instead.

The message is queued to be sent and will be sent when the main loop is run.

setKeepaliveInterval

websocketConnectionSetKeepaliveInterval Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> Word32

interval: the interval to send a ping message or 0 to disable it

-> m () 

Sets the interval in seconds on when to send a ping message which will serve as a keepalive message.

If set to 0 the keepalive message is disabled.

setMaxIncomingPayloadSize

websocketConnectionSetMaxIncomingPayloadSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsWebsocketConnection a) 
=> a

self: the WebSocket

-> Word64

maxIncomingPayloadSize: the maximum payload size

-> m () 

Sets the maximum payload size allowed for incoming packets.

It does not limit the outgoing packet size.

Properties

connectionType

The type of connection (client/server).

data WebsocketConnectionConnectionTypePropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionConnectionTypePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionConnectionTypePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionConnectionType :: (IsWebsocketConnection o, MonadIO m) => WebsocketConnectionType -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “connection-type” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionConnectionType :: (MonadIO m, IsWebsocketConnection o) => o -> m WebsocketConnectionType Source #

Get the value of the “connection-type” property. When overloading is enabled, this is equivalent to

get websocketConnection #connectionType

extensions

List of [classwebsocketExtension] objects that are active in the connection.

data WebsocketConnectionExtensionsPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionExtensionsPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionExtensionsPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionExtensions :: (IsWebsocketConnection o, MonadIO m) => Ptr () -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “extensions” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionExtensions :: (MonadIO m, IsWebsocketConnection o) => o -> m (Ptr ()) Source #

Get the value of the “extensions” property. When overloading is enabled, this is equivalent to

get websocketConnection #extensions

ioStream

The underlying IO stream the WebSocket is communicating over.

The input and output streams must be pollable streams.

data WebsocketConnectionIoStreamPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionIoStreamPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionIoStreamPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionIoStream :: (IsWebsocketConnection o, MonadIO m, IsIOStream a) => a -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “io-stream” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionIoStream :: (MonadIO m, IsWebsocketConnection o) => o -> m IOStream Source #

Get the value of the “io-stream” property. When overloading is enabled, this is equivalent to

get websocketConnection #ioStream

keepaliveInterval

Interval in seconds on when to send a ping message which will serve as a keepalive message.

If set to 0 the keepalive message is disabled.

data WebsocketConnectionKeepaliveIntervalPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionKeepaliveIntervalPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionKeepaliveIntervalPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionKeepaliveInterval :: (IsWebsocketConnection o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “keepalive-interval” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionKeepaliveInterval :: (MonadIO m, IsWebsocketConnection o) => o -> m Word32 Source #

Get the value of the “keepalive-interval” property. When overloading is enabled, this is equivalent to

get websocketConnection #keepaliveInterval

setWebsocketConnectionKeepaliveInterval :: (MonadIO m, IsWebsocketConnection o) => o -> Word32 -> m () Source #

Set the value of the “keepalive-interval” property. When overloading is enabled, this is equivalent to

set websocketConnection [ #keepaliveInterval := value ]

maxIncomingPayloadSize

The maximum payload size for incoming packets.

The protocol expects or 0 to not limit it.

data WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionMaxIncomingPayloadSizePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionMaxIncomingPayloadSizePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionMaxIncomingPayloadSize :: (IsWebsocketConnection o, MonadIO m) => Word64 -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “max-incoming-payload-size” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionMaxIncomingPayloadSize :: (MonadIO m, IsWebsocketConnection o) => o -> m Word64 Source #

Get the value of the “max-incoming-payload-size” property. When overloading is enabled, this is equivalent to

get websocketConnection #maxIncomingPayloadSize

setWebsocketConnectionMaxIncomingPayloadSize :: (MonadIO m, IsWebsocketConnection o) => o -> Word64 -> m () Source #

Set the value of the “max-incoming-payload-size” property. When overloading is enabled, this is equivalent to

set websocketConnection [ #maxIncomingPayloadSize := value ]

origin

The client's Origin.

data WebsocketConnectionOriginPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionOriginPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionOriginPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionOrigin :: (IsWebsocketConnection o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “origin” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionOrigin :: (MonadIO m, IsWebsocketConnection o) => o -> m (Maybe Text) Source #

Get the value of the “origin” property. When overloading is enabled, this is equivalent to

get websocketConnection #origin

protocol

The chosen protocol, or Nothing if a protocol was not agreed upon.

data WebsocketConnectionProtocolPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionProtocolPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionProtocolPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionProtocol :: (IsWebsocketConnection o, MonadIO m) => Text -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “protocol” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionProtocol :: (MonadIO m, IsWebsocketConnection o) => o -> m (Maybe Text) Source #

Get the value of the “protocol” property. When overloading is enabled, this is equivalent to

get websocketConnection #protocol

state

The current state of the WebSocket.

data WebsocketConnectionStatePropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionStatePropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionStatePropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

getWebsocketConnectionState :: (MonadIO m, IsWebsocketConnection o) => o -> m WebsocketState Source #

Get the value of the “state” property. When overloading is enabled, this is equivalent to

get websocketConnection #state

uri

The URI of the WebSocket.

For servers this represents the address of the WebSocket, and for clients it is the address connected to.

data WebsocketConnectionUriPropertyInfo Source #

Instances

Instances details
AttrInfo WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

Associated Types

type AttrAllowedOps WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionUriPropertyInfo 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrAllowedOps WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrBaseTypeConstraint WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrGetType WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrLabel WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrOrigin WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrSetTypeConstraint WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferType WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

type AttrTransferTypeConstraint WebsocketConnectionUriPropertyInfo Source # 
Instance details

Defined in GI.Soup.Objects.WebsocketConnection

constructWebsocketConnectionUri :: (IsWebsocketConnection o, MonadIO m) => Uri -> m (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “uri” property. This is rarely needed directly, but it is used by new.

getWebsocketConnectionUri :: (MonadIO m, IsWebsocketConnection o) => o -> m Uri Source #

Get the value of the “uri” property. When overloading is enabled, this is equivalent to

get websocketConnection #uri

Signals

closed

type WebsocketConnectionClosedCallback = IO () Source #

Emitted when the connection has completely closed.

This happens either due to an orderly close from the peer, one initiated via [methodwebsocketConnection.close] or a fatal error condition that caused a close.

This signal will be emitted once.

afterWebsocketConnectionClosed :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionClosedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the closed signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after websocketConnection #closed callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onWebsocketConnectionClosed :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionClosedCallback) -> m SignalHandlerId Source #

Connect a signal handler for the closed signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on websocketConnection #closed callback

closing

type WebsocketConnectionClosingCallback = IO () Source #

This signal will be emitted during an orderly close.

afterWebsocketConnectionClosing :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionClosingCallback) -> m SignalHandlerId Source #

Connect a signal handler for the closing signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after websocketConnection #closing callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onWebsocketConnectionClosing :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionClosingCallback) -> m SignalHandlerId Source #

Connect a signal handler for the closing signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on websocketConnection #closing callback

error

type WebsocketConnectionErrorCallback Source #

Arguments

 = GError

error: the error that occured

-> IO () 

Emitted when an error occurred on the WebSocket.

This may be fired multiple times. Fatal errors will be followed by the signalwebsocketConnection[closed] signal being emitted.

afterWebsocketConnectionError :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionErrorCallback) -> m SignalHandlerId Source #

Connect a signal handler for the error signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after websocketConnection #error callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onWebsocketConnectionError :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionErrorCallback) -> m SignalHandlerId Source #

Connect a signal handler for the error signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on websocketConnection #error callback

message

type WebsocketConnectionMessageCallback Source #

Arguments

 = Int32

type: the type of message contents

-> Bytes

message: the message data

-> IO () 

Emitted when we receive a message from the peer.

As a convenience, the message data will always be Nothing-terminated, but the NUL byte will not be included in the length count.

afterWebsocketConnectionMessage :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionMessageCallback) -> m SignalHandlerId Source #

Connect a signal handler for the message signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after websocketConnection #message callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onWebsocketConnectionMessage :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionMessageCallback) -> m SignalHandlerId Source #

Connect a signal handler for the message signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on websocketConnection #message callback

pong

type WebsocketConnectionPongCallback Source #

Arguments

 = Bytes

message: the application data (if any)

-> IO () 

Emitted when we receive a Pong frame (solicited or unsolicited) from the peer.

As a convenience, the message data will always be Nothing-terminated, but the NUL byte will not be included in the length count.

afterWebsocketConnectionPong :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionPongCallback) -> m SignalHandlerId Source #

Connect a signal handler for the pong signal, to be run after the default handler. When overloading is enabled, this is equivalent to

after websocketConnection #pong callback

By default the object invoking the signal is not passed to the callback. If you need to access it, you can use the implit ?self parameter. Note that this requires activating the ImplicitParams GHC extension.

onWebsocketConnectionPong :: (IsWebsocketConnection a, MonadIO m) => a -> ((?self :: a) => WebsocketConnectionPongCallback) -> m SignalHandlerId Source #

Connect a signal handler for the pong signal, to be run before the default handler. When overloading is enabled, this is equivalent to

on websocketConnection #pong callback