Created
January 11, 2016 14:34
-
-
Save AeroNotix/924c7eb4a12d12a46d11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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