Pull request: If you change the signature of ws_recv
to:
def ws_recv(self, wantBinary=False, packetType=0x07):
and the test for binary packets to:
elif (wantBinary is True) and (result[0] == packetType): # binary pattern list packet
then your library can be used to read other things besides the pattern list (I’m redoing my animated previews code to take advantage of the increased number of preview pixels in v3.24, but they’re only in the websocket packets – the preview jpeg saved inside the pattern EPE is still limited to 100 wide by 150 tall).