sub_protocols Property

Optional subprotocols supported by the client.

Syntax

def get_sub_protocols() -> str: ...
def set_sub_protocols(value: str) -> None: ...

sub_protocols = property(get_sub_protocols, set_sub_protocols)

Default Value

""

Remarks

This property is optional. Set this property to one or more comma separated subprotocols the client supports. These should be provided in order of preference. For instance: "chat, superchat".

The server will accept one subprotocol during the connection. After the connection is established this property will be updated by the class to reflect the value the server chose. Query this property to determine the negotiated subprotocol.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]