class_docstr: Read binary data from a websocket
  
  This source will accept connections on a given port and handle messages
  coming in.
  
  The websockets library must be installed.
  
  :param host: str
      Typically "localhost"
  :param port: int
      Which port to listen on (must be available)
  :param serve_kwargs: dict
      Passed to ``websockets.serve``
  :param kwargs:
      Passed to superclass
class_docstr_tok: ["Read","binary","data","from","a","websocket","This","source","will","accept","connections","on","a","given","port","and","handle","messages","coming","in",".","The","websockets","library","must","be","installed",".",":","param","host",":","str","Typically","``","localhost","''",":","param","port",":","int","Which","port","to","listen","on","(","must","be","available",")",":","param","serve_kwargs",":","dict","Passed","to","``","websockets.serve","``",":","param","kwargs",":","Passed","to","superclass"]
code: def _read(self, ws, path):
      while not self.stopped:
          data = yield ws.recv()
          yield self._emit(data)
  
imports: import asyncio
  from glob import glob
  import queue
  import os
  import time
  from tornado import gen
  import weakref
  from .core import Stream, convert_interval, RefCounter, sync
label_desc: Use image node_id 2 for calling the from_websocket obj's underlying member method code with example usage: obj._read(ws, path) without return types