parameters: (self, get_mask_key=None, sockopt=None, sslopt=None,
                   fire_cont_frame=False, enable_multithread=False,
                   skip_utf8_validation=False)
docstring: Initalize WebSocket object.
docstring_summary: Initalize WebSocket object.
docstring_tokens: Initalize WebSocket object .
function: def __init__(self, get_mask_key=None, sockopt=None, sslopt=None,
                   fire_cont_frame=False, enable_multithread=False,
                   skip_utf8_validation=False):
          """
          Initalize WebSocket object.
          """
          self.sock_opt = sock_opt(sockopt, sslopt)
          self.handshake_response = None
          self.sock = None
  
          self.connected = False
          self.get_mask_key = get_mask_key
          # These buffer over the build-up of a single frame.
          self.frame_buffer = frame_buffer(self._recv, skip_utf8_validation)
          self.cont_frame = continuous_frame(fire_cont_frame, skip_utf8_validation)
  
          if enable_multithread:
              self.lock = threading.Lock()
          else:
              self.lock = NoLock()
function_tokens: def __init__ ( self , get_mask_key = None , sockopt = None , sslopt = None , fire_cont_frame = False , enable_multithread = False , skip_utf8_validation = False ) : self . sock_opt = sock_opt ( sockopt , sslopt ) self . handshake_response = None self . sock = None self . connected = False self . get_mask_key = get_mask_key # These buffer over the build-up of a single frame. self . frame_buffer = frame_buffer ( self . _recv , skip_utf8_validation ) self . cont_frame = continuous_frame ( fire_cont_frame , skip_utf8_validation ) if enable_multithread : self . lock = threading . Lock ( ) else : self . lock = NoLock ( )