liris/websocket-client — pull request #21 by CMGS (2012-08-17 03:32:51+00:00)
Title: make sure data is completed

unpack requires exactly length of data, so use _recv_strict.

and u see, in websocket.py, bytes == 0 cant deal with the whole conditions, cuz when something wrong with the connection, it will set as None, not zero.