'A WebSocket frame contains an initial length_code, and an optional
extended length code to represent the actual length if length code is
larger than 125'

@classmethod
def _make_length_code(self, length):

    if (length <= 125):
        return length
    elif ((length >= 126) and (length <= 65535)):
        return 126
    else:
        return 127
