repr for websocket frames
This commit is contained in:
parent
2d9b9be1f4
commit
0269d0fb8b
|
@ -332,6 +332,9 @@ class Frame(object):
|
||||||
ret = ret + "\nPayload:\n" + utils.cleanBin(self.payload)
|
ret = ret + "\nPayload:\n" + utils.cleanBin(self.payload)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return self.header.human_readable()
|
||||||
|
|
||||||
def to_bytes(self):
|
def to_bytes(self):
|
||||||
"""
|
"""
|
||||||
Serialize the frame to wire format. Returns a string.
|
Serialize the frame to wire format. Returns a string.
|
||||||
|
|
Loading…
Reference in New Issue