Copyright | Will Thompson, Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
- Exported types
- Methods
- websocketConnectionClose
- websocketConnectionGetCloseCode
- websocketConnectionGetCloseData
- websocketConnectionGetConnectionType
- websocketConnectionGetIoStream
- websocketConnectionGetOrigin
- websocketConnectionGetProtocol
- websocketConnectionGetState
- websocketConnectionGetUri
- websocketConnectionNew
- websocketConnectionSendBinary
- websocketConnectionSendText
- Properties
- Signals
- newtype WebsocketConnection = WebsocketConnection (ForeignPtr WebsocketConnection)
- class GObject o => WebsocketConnectionK o
- toWebsocketConnection :: WebsocketConnectionK o => o -> IO WebsocketConnection
- noWebsocketConnection :: Maybe WebsocketConnection
- data WebsocketConnectionCloseMethodInfo
- websocketConnectionClose :: (MonadIO m, WebsocketConnectionK a) => a -> Word16 -> Maybe Text -> m ()
- data WebsocketConnectionGetCloseCodeMethodInfo
- websocketConnectionGetCloseCode :: (MonadIO m, WebsocketConnectionK a) => a -> m Word16
- data WebsocketConnectionGetCloseDataMethodInfo
- websocketConnectionGetCloseData :: (MonadIO m, WebsocketConnectionK a) => a -> m Text
- data WebsocketConnectionGetConnectionTypeMethodInfo
- websocketConnectionGetConnectionType :: (MonadIO m, WebsocketConnectionK a) => a -> m WebsocketConnectionType
- data WebsocketConnectionGetIoStreamMethodInfo
- websocketConnectionGetIoStream :: (MonadIO m, WebsocketConnectionK a) => a -> m IOStream
- data WebsocketConnectionGetOriginMethodInfo
- websocketConnectionGetOrigin :: (MonadIO m, WebsocketConnectionK a) => a -> m (Maybe Text)
- data WebsocketConnectionGetProtocolMethodInfo
- websocketConnectionGetProtocol :: (MonadIO m, WebsocketConnectionK a) => a -> m (Maybe Text)
- data WebsocketConnectionGetStateMethodInfo
- websocketConnectionGetState :: (MonadIO m, WebsocketConnectionK a) => a -> m WebsocketState
- data WebsocketConnectionGetUriMethodInfo
- websocketConnectionGetUri :: (MonadIO m, WebsocketConnectionK a) => a -> m URI
- websocketConnectionNew :: (MonadIO m, IOStreamK a) => a -> URI -> WebsocketConnectionType -> Maybe Text -> Maybe Text -> m WebsocketConnection
- data WebsocketConnectionSendBinaryMethodInfo
- websocketConnectionSendBinary :: (MonadIO m, WebsocketConnectionK a) => a -> ByteString -> m ()
- data WebsocketConnectionSendTextMethodInfo
- websocketConnectionSendText :: (MonadIO m, WebsocketConnectionK a) => a -> Text -> m ()
- data WebsocketConnectionConnectionTypePropertyInfo
- constructWebsocketConnectionConnectionType :: WebsocketConnectionType -> IO ([Char], GValue)
- getWebsocketConnectionConnectionType :: (MonadIO m, WebsocketConnectionK o) => o -> m WebsocketConnectionType
- websocketConnectionConnectionType :: AttrLabelProxy "connectionType"
- data WebsocketConnectionIoStreamPropertyInfo
- constructWebsocketConnectionIoStream :: IOStreamK a => a -> IO ([Char], GValue)
- getWebsocketConnectionIoStream :: (MonadIO m, WebsocketConnectionK o) => o -> m IOStream
- websocketConnectionIoStream :: AttrLabelProxy "ioStream"
- data WebsocketConnectionOriginPropertyInfo
- constructWebsocketConnectionOrigin :: Text -> IO ([Char], GValue)
- getWebsocketConnectionOrigin :: (MonadIO m, WebsocketConnectionK o) => o -> m (Maybe Text)
- websocketConnectionOrigin :: AttrLabelProxy "origin"
- data WebsocketConnectionProtocolPropertyInfo
- constructWebsocketConnectionProtocol :: Text -> IO ([Char], GValue)
- getWebsocketConnectionProtocol :: (MonadIO m, WebsocketConnectionK o) => o -> m (Maybe Text)
- websocketConnectionProtocol :: AttrLabelProxy "protocol"
- data WebsocketConnectionStatePropertyInfo
- getWebsocketConnectionState :: (MonadIO m, WebsocketConnectionK o) => o -> m WebsocketState
- websocketConnectionState :: AttrLabelProxy "state"
- data WebsocketConnectionUriPropertyInfo
- constructWebsocketConnectionUri :: URI -> IO ([Char], GValue)
- getWebsocketConnectionUri :: (MonadIO m, WebsocketConnectionK o) => o -> m URI
- websocketConnectionUri :: AttrLabelProxy "uri"
- type WebsocketConnectionClosedCallback = IO ()
- type WebsocketConnectionClosedCallbackC = Ptr () -> Ptr () -> IO ()
- data WebsocketConnectionClosedSignalInfo
- afterWebsocketConnectionClosed :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosedCallback -> m SignalHandlerId
- mkWebsocketConnectionClosedCallback :: WebsocketConnectionClosedCallbackC -> IO (FunPtr WebsocketConnectionClosedCallbackC)
- noWebsocketConnectionClosedCallback :: Maybe WebsocketConnectionClosedCallback
- onWebsocketConnectionClosed :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosedCallback -> m SignalHandlerId
- websocketConnectionClosedCallbackWrapper :: WebsocketConnectionClosedCallback -> Ptr () -> Ptr () -> IO ()
- websocketConnectionClosedClosure :: WebsocketConnectionClosedCallback -> IO Closure
- type WebsocketConnectionClosingCallback = IO ()
- type WebsocketConnectionClosingCallbackC = Ptr () -> Ptr () -> IO ()
- data WebsocketConnectionClosingSignalInfo
- afterWebsocketConnectionClosing :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosingCallback -> m SignalHandlerId
- mkWebsocketConnectionClosingCallback :: WebsocketConnectionClosingCallbackC -> IO (FunPtr WebsocketConnectionClosingCallbackC)
- noWebsocketConnectionClosingCallback :: Maybe WebsocketConnectionClosingCallback
- onWebsocketConnectionClosing :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosingCallback -> m SignalHandlerId
- websocketConnectionClosingCallbackWrapper :: WebsocketConnectionClosingCallback -> Ptr () -> Ptr () -> IO ()
- websocketConnectionClosingClosure :: WebsocketConnectionClosingCallback -> IO Closure
- type WebsocketConnectionErrorCallback = GError -> IO ()
- type WebsocketConnectionErrorCallbackC = Ptr () -> Ptr GError -> Ptr () -> IO ()
- data WebsocketConnectionErrorSignalInfo
- afterWebsocketConnectionError :: (GObject a, MonadIO m) => a -> WebsocketConnectionErrorCallback -> m SignalHandlerId
- mkWebsocketConnectionErrorCallback :: WebsocketConnectionErrorCallbackC -> IO (FunPtr WebsocketConnectionErrorCallbackC)
- noWebsocketConnectionErrorCallback :: Maybe WebsocketConnectionErrorCallback
- onWebsocketConnectionError :: (GObject a, MonadIO m) => a -> WebsocketConnectionErrorCallback -> m SignalHandlerId
- websocketConnectionErrorCallbackWrapper :: WebsocketConnectionErrorCallback -> Ptr () -> Ptr GError -> Ptr () -> IO ()
- websocketConnectionErrorClosure :: WebsocketConnectionErrorCallback -> IO Closure
- type WebsocketConnectionMessageCallback = Int32 -> Bytes -> IO ()
- type WebsocketConnectionMessageCallbackC = Ptr () -> Int32 -> Ptr Bytes -> Ptr () -> IO ()
- data WebsocketConnectionMessageSignalInfo
- afterWebsocketConnectionMessage :: (GObject a, MonadIO m) => a -> WebsocketConnectionMessageCallback -> m SignalHandlerId
- mkWebsocketConnectionMessageCallback :: WebsocketConnectionMessageCallbackC -> IO (FunPtr WebsocketConnectionMessageCallbackC)
- noWebsocketConnectionMessageCallback :: Maybe WebsocketConnectionMessageCallback
- onWebsocketConnectionMessage :: (GObject a, MonadIO m) => a -> WebsocketConnectionMessageCallback -> m SignalHandlerId
- websocketConnectionMessageCallbackWrapper :: WebsocketConnectionMessageCallback -> Ptr () -> Int32 -> Ptr Bytes -> Ptr () -> IO ()
- websocketConnectionMessageClosure :: WebsocketConnectionMessageCallback -> IO Closure
Exported types
newtype WebsocketConnection Source
GObject WebsocketConnection | |
((~) * info (ResolveWebsocketConnectionMethod t WebsocketConnection), MethodInfo * info WebsocketConnection p) => IsLabelProxy t (WebsocketConnection -> p) | |
type ParentTypes WebsocketConnection | |
type AttributeList WebsocketConnection | |
type SignalList WebsocketConnection |
class GObject o => WebsocketConnectionK o Source
(GObject o, IsDescendantOf WebsocketConnection o) => WebsocketConnectionK o |
toWebsocketConnection :: WebsocketConnectionK o => o -> IO WebsocketConnection Source
Methods
websocketConnectionClose
data WebsocketConnectionCloseMethodInfo Source
((~) * signature (Word16 -> Maybe Text -> m ()), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionCloseMethodInfo a signature |
websocketConnectionClose :: (MonadIO m, WebsocketConnectionK a) => a -> Word16 -> Maybe Text -> m () Source
websocketConnectionGetCloseCode
data WebsocketConnectionGetCloseCodeMethodInfo Source
((~) * signature (m Word16), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetCloseCodeMethodInfo a signature |
websocketConnectionGetCloseCode :: (MonadIO m, WebsocketConnectionK a) => a -> m Word16 Source
websocketConnectionGetCloseData
data WebsocketConnectionGetCloseDataMethodInfo Source
((~) * signature (m Text), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetCloseDataMethodInfo a signature |
websocketConnectionGetCloseData :: (MonadIO m, WebsocketConnectionK a) => a -> m Text Source
websocketConnectionGetConnectionType
data WebsocketConnectionGetConnectionTypeMethodInfo Source
((~) * signature (m WebsocketConnectionType), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetConnectionTypeMethodInfo a signature |
websocketConnectionGetConnectionType :: (MonadIO m, WebsocketConnectionK a) => a -> m WebsocketConnectionType Source
websocketConnectionGetIoStream
data WebsocketConnectionGetIoStreamMethodInfo Source
((~) * signature (m IOStream), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetIoStreamMethodInfo a signature |
websocketConnectionGetIoStream :: (MonadIO m, WebsocketConnectionK a) => a -> m IOStream Source
websocketConnectionGetOrigin
data WebsocketConnectionGetOriginMethodInfo Source
((~) * signature (m (Maybe Text)), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetOriginMethodInfo a signature |
websocketConnectionGetOrigin :: (MonadIO m, WebsocketConnectionK a) => a -> m (Maybe Text) Source
websocketConnectionGetProtocol
data WebsocketConnectionGetProtocolMethodInfo Source
((~) * signature (m (Maybe Text)), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetProtocolMethodInfo a signature |
websocketConnectionGetProtocol :: (MonadIO m, WebsocketConnectionK a) => a -> m (Maybe Text) Source
websocketConnectionGetState
data WebsocketConnectionGetStateMethodInfo Source
((~) * signature (m WebsocketState), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetStateMethodInfo a signature |
websocketConnectionGetState :: (MonadIO m, WebsocketConnectionK a) => a -> m WebsocketState Source
websocketConnectionGetUri
data WebsocketConnectionGetUriMethodInfo Source
((~) * signature (m URI), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionGetUriMethodInfo a signature |
websocketConnectionGetUri :: (MonadIO m, WebsocketConnectionK a) => a -> m URI Source
websocketConnectionNew
websocketConnectionNew :: (MonadIO m, IOStreamK a) => a -> URI -> WebsocketConnectionType -> Maybe Text -> Maybe Text -> m WebsocketConnection Source
websocketConnectionSendBinary
data WebsocketConnectionSendBinaryMethodInfo Source
((~) * signature (ByteString -> m ()), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionSendBinaryMethodInfo a signature |
websocketConnectionSendBinary :: (MonadIO m, WebsocketConnectionK a) => a -> ByteString -> m () Source
websocketConnectionSendText
data WebsocketConnectionSendTextMethodInfo Source
((~) * signature (Text -> m ()), MonadIO m, WebsocketConnectionK a) => MethodInfo * WebsocketConnectionSendTextMethodInfo a signature |
websocketConnectionSendText :: (MonadIO m, WebsocketConnectionK a) => a -> Text -> m () Source
Properties
ConnectionType
data WebsocketConnectionConnectionTypePropertyInfo Source
getWebsocketConnectionConnectionType :: (MonadIO m, WebsocketConnectionK o) => o -> m WebsocketConnectionType Source
websocketConnectionConnectionType :: AttrLabelProxy "connectionType" Source
IoStream
data WebsocketConnectionIoStreamPropertyInfo Source
getWebsocketConnectionIoStream :: (MonadIO m, WebsocketConnectionK o) => o -> m IOStream Source
websocketConnectionIoStream :: AttrLabelProxy "ioStream" Source
Origin
data WebsocketConnectionOriginPropertyInfo Source
getWebsocketConnectionOrigin :: (MonadIO m, WebsocketConnectionK o) => o -> m (Maybe Text) Source
websocketConnectionOrigin :: AttrLabelProxy "origin" Source
Protocol
data WebsocketConnectionProtocolPropertyInfo Source
getWebsocketConnectionProtocol :: (MonadIO m, WebsocketConnectionK o) => o -> m (Maybe Text) Source
websocketConnectionProtocol :: AttrLabelProxy "protocol" Source
State
data WebsocketConnectionStatePropertyInfo Source
getWebsocketConnectionState :: (MonadIO m, WebsocketConnectionK o) => o -> m WebsocketState Source
websocketConnectionState :: AttrLabelProxy "state" Source
Uri
data WebsocketConnectionUriPropertyInfo Source
getWebsocketConnectionUri :: (MonadIO m, WebsocketConnectionK o) => o -> m URI Source
websocketConnectionUri :: AttrLabelProxy "uri" Source
Signals
Closed
type WebsocketConnectionClosedCallback = IO () Source
type WebsocketConnectionClosedCallbackC = Ptr () -> Ptr () -> IO () Source
afterWebsocketConnectionClosed :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosedCallback -> m SignalHandlerId Source
mkWebsocketConnectionClosedCallback :: WebsocketConnectionClosedCallbackC -> IO (FunPtr WebsocketConnectionClosedCallbackC) Source
onWebsocketConnectionClosed :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosedCallback -> m SignalHandlerId Source
websocketConnectionClosedCallbackWrapper :: WebsocketConnectionClosedCallback -> Ptr () -> Ptr () -> IO () Source
Closing
type WebsocketConnectionClosingCallback = IO () Source
type WebsocketConnectionClosingCallbackC = Ptr () -> Ptr () -> IO () Source
afterWebsocketConnectionClosing :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosingCallback -> m SignalHandlerId Source
mkWebsocketConnectionClosingCallback :: WebsocketConnectionClosingCallbackC -> IO (FunPtr WebsocketConnectionClosingCallbackC) Source
onWebsocketConnectionClosing :: (GObject a, MonadIO m) => a -> WebsocketConnectionClosingCallback -> m SignalHandlerId Source
websocketConnectionClosingCallbackWrapper :: WebsocketConnectionClosingCallback -> Ptr () -> Ptr () -> IO () Source
Error
type WebsocketConnectionErrorCallback = GError -> IO () Source
afterWebsocketConnectionError :: (GObject a, MonadIO m) => a -> WebsocketConnectionErrorCallback -> m SignalHandlerId Source
mkWebsocketConnectionErrorCallback :: WebsocketConnectionErrorCallbackC -> IO (FunPtr WebsocketConnectionErrorCallbackC) Source
onWebsocketConnectionError :: (GObject a, MonadIO m) => a -> WebsocketConnectionErrorCallback -> m SignalHandlerId Source
websocketConnectionErrorCallbackWrapper :: WebsocketConnectionErrorCallback -> Ptr () -> Ptr GError -> Ptr () -> IO () Source
Message
type WebsocketConnectionMessageCallback = Int32 -> Bytes -> IO () Source
afterWebsocketConnectionMessage :: (GObject a, MonadIO m) => a -> WebsocketConnectionMessageCallback -> m SignalHandlerId Source
mkWebsocketConnectionMessageCallback :: WebsocketConnectionMessageCallbackC -> IO (FunPtr WebsocketConnectionMessageCallbackC) Source
onWebsocketConnectionMessage :: (GObject a, MonadIO m) => a -> WebsocketConnectionMessageCallback -> m SignalHandlerId Source
websocketConnectionMessageCallbackWrapper :: WebsocketConnectionMessageCallback -> Ptr () -> Int32 -> Ptr Bytes -> Ptr () -> IO () Source