class_docstr: Defines the protocol for chatting with starcraft.
code: def __init__(self, sock):
      self._status = Status.launched
      self._sock = sock
      self._port = sock.sock.getpeername()[1]
      self._count = itertools.count(1)
  
imports: import contextlib
  import enum
  import itertools
  import os
  import socket
  import sys
  import time
  from absl import flags
  from absl import logging
  from pysc2.lib import stopwatch
  import websocket
  from s2clientprotocol import sc2api_pb2
label_desc: Use image node_id 1 to create a new StarcraftProtocol object from inherited base classes: object with example: obj = StarcraftProtocol(sock)