MCPcopy Index your code
hub / github.com/Syncplay/syncplay / connectionMade

Method connectionMade

syncplay/protocols.py:83–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

81 self._client.ui.showDebugMessage(line)
82
83 def connectionMade(self):
84 self.hadFirstPlaylistIndex = False
85 self.hadFirstStateUpdate = False
86 self._client.initProtocol(self)
87 if self._client._clientSupportsTLS:
88 if self._client._serverSupportsTLS:
89 self.sendTLS({"startTLS": "send"})
90 self._client.ui.showMessage(getMessage("startTLS-initiated"))
91 else:
92 self._client.ui.showErrorMessage(getMessage("startTLS-not-supported-server"))
93 self.sendHello()
94 else:
95 self._client.ui.showMessage(getMessage("startTLS-not-supported-client"))
96 self.sendHello()
97
98 def connectionLost(self, reason):
99 try:

Callers

nothing calls this directly

Calls 6

sendTLSMethod · 0.95
sendHelloMethod · 0.95
getMessageFunction · 0.90
initProtocolMethod · 0.80
showMessageMethod · 0.45
showErrorMessageMethod · 0.45

Tested by

no test coverage detected