parent
619e0f05e2
commit
f369e2fdac
20 changed files with 77 additions and 117 deletions
|
|
@ -3,7 +3,6 @@ class ClientMessageType:
|
|||
REQUEST = "REQ"
|
||||
CLOSE = "CLOSE"
|
||||
|
||||
|
||||
class RelayMessageType:
|
||||
EVENT = "EVENT"
|
||||
NOTICE = "NOTICE"
|
||||
|
|
@ -11,10 +10,6 @@ class RelayMessageType:
|
|||
|
||||
@staticmethod
|
||||
def is_valid(type: str) -> bool:
|
||||
if (
|
||||
type == RelayMessageType.EVENT
|
||||
or type == RelayMessageType.NOTICE
|
||||
or type == RelayMessageType.END_OF_STORED_EVENTS
|
||||
):
|
||||
if type == RelayMessageType.EVENT or type == RelayMessageType.NOTICE or type == RelayMessageType.END_OF_STORED_EVENTS:
|
||||
return True
|
||||
return False
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue