MCPcopy Create free account
hub / github.com/Syncplay/syncplay / handleHello

Method handleHello

syncplay/protocols.py:523–535  ·  view source on GitHub ↗
(self, hello)

Source from the content-addressed store, hash-verified

521 return True
522
523 def handleHello(self, hello):
524 username, serverPassword, roomName, version, features = self._extractHelloArguments(hello)
525 if not username or not roomName or not version:
526 self.dropWithError(getMessage("hello-server-error"))
527 return
528 else:
529 if not self._checkPassword(serverPassword):
530 return
531 self._version = version
532 self.setFeatures(features)
533 self._factory.addWatcher(self, username, roomName)
534 self._logged = True
535 self.sendHello(version)
536
537 def persistentRoomWarning(self, clientFeatures, serverFeatures):
538 serverPersistentRooms = serverFeatures["persistentRooms"]

Callers

nothing calls this directly

Calls 7

dropWithErrorMethod · 0.95
_checkPasswordMethod · 0.95
setFeaturesMethod · 0.95
sendHelloMethod · 0.95
getMessageFunction · 0.90
addWatcherMethod · 0.45

Tested by

no test coverage detected