Skip to content

Instantly share code, notes, and snippets.

@AeroNotix
Created January 11, 2016 14:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AeroNotix/924c7eb4a12d12a46d11 to your computer and use it in GitHub Desktop.
Save AeroNotix/924c7eb4a12d12a46d11 to your computer and use it in GitHub Desktop.
def requires_open_websocket(f):
def wrapper(self, *args):
if not self.ws_connection:
return
return f(self, *args)
return wrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment