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

Method sendHello

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

Source from the content-addressed store, hash-verified

154 return serverFeatures["persistentRooms"] if "persistentRooms" in serverFeatures else False
155
156 def sendHello(self):
157 hello = {}
158 hello["username"] = self._client.getUsername()
159 password = self._client.getPassword()
160 if password:
161 hello["password"] = password
162 room = self._client.getRoom()
163 if room:
164 hello["room"] = {"name": room}
165 hello["version"] = "1.2.255" # Used so newer clients work on 1.2.X server
166 hello["realversion"] = syncplay.version
167 hello["features"] = self._client.getFeatures()
168 self.sendMessage({"Hello": hello})
169
170 def _SetUser(self, users):
171 for user in users.items():

Callers 3

connectionMadeMethod · 0.95
handleTLSMethod · 0.95
handshakeCompletedMethod · 0.95

Calls 5

getUsernameMethod · 0.80
getPasswordMethod · 0.80
sendMessageMethod · 0.80
getRoomMethod · 0.45
getFeaturesMethod · 0.45

Tested by

no test coverage detected