WebsocketConnection.this

Creates a #SoupWebsocketConnection on @stream with the given active @extensions. This should be called after completing the handshake to begin using the WebSocket protocol.

  1. this(SoupWebsocketConnection* soupWebsocketConnection, bool ownedRef)
  2. this(IOStream stream, URI uri, SoupWebsocketConnectionType type, string origin, string protocol)
  3. this(IOStream stream, URI uri, SoupWebsocketConnectionType type, string origin, string protocol, ListG extensions)
    class WebsocketConnection

Parameters

stream IOStream

a #GIOStream connected to the WebSocket server

uri URI

the URI of the connection

type SoupWebsocketConnectionType

the type of connection (client/side)

origin string

the Origin of the client

protocol string

the subprotocol in use

extensions ListG

a #GList of #SoupWebsocketExtension objects

Return Value

a new #SoupWebsocketConnection

Throws

ConstructionException GTK+ fails to create the object.

Meta

Since

2.68