Websocket
Extension
Class
constructor
name
parent_
class
name
configure
get_
request_
params
get_
response_
params
process_
incoming_
message
process_
outgoing_
message
GJS API Reference
Soup-2.4
Soup
WebsocketExtensionClass
Class WebsocketExtensionClass
The class structure for the SoupWebsocketExtension.
record
Hierarchy
WebsocketExtensionClass
Index
Constructors
constructor
Properties
name
parent_
class
name
Methods
configure
get_
request_
params
get_
response_
params
process_
incoming_
message
process_
outgoing_
message
Constructors
constructor
new
Websocket
Extension
Class
(
)
:
Soup
.
WebsocketExtensionClass
Returns
Soup
.
WebsocketExtensionClass
Properties
name
name
:
string
parent_
class
parent_
class
:
GObject
.
ObjectClass
the parent class
field
Static
name
name
:
string
Methods
configure
configure
(
extension
:
Soup
.
WebsocketExtension
, connection_type
:
Soup
.
WebsocketConnectionType
, params
:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
)
:
boolean
Parameters
extension:
Soup
.
WebsocketExtension
connection_type:
Soup
.
WebsocketConnectionType
params:
HashTable
<
string
|
number
|
symbol
,
string
|
number
|
boolean
>
Returns
boolean
get_
request_
params
get_
request_
params
(
extension
:
Soup
.
WebsocketExtension
)
:
string
Parameters
extension:
Soup
.
WebsocketExtension
Returns
string
get_
response_
params
get_
response_
params
(
extension
:
Soup
.
WebsocketExtension
)
:
string
Parameters
extension:
Soup
.
WebsocketExtension
Returns
string
process_
incoming_
message
process_
incoming_
message
(
extension
:
Soup
.
WebsocketExtension
, header
:
number
, payload
:
Bytes
)
:
[
Bytes
,
number
]
Parameters
extension:
Soup
.
WebsocketExtension
header:
number
payload:
Bytes
Returns
[
Bytes
,
number
]
process_
outgoing_
message
process_
outgoing_
message
(
extension
:
Soup
.
WebsocketExtension
, header
:
number
, payload
:
Bytes
)
:
[
Bytes
,
number
]
Parameters
extension:
Soup
.
WebsocketExtension
header:
number
payload:
Bytes
Returns
[
Bytes
,
number
]
Websocket
Extension
Class
constructor
name
parent_
class
name
configure
get_
request_
params
get_
response_
params
process_
incoming_
message
process_
outgoing_
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