websocket handler calls are automatically wrapped inside the flask
application and request context
(thanks to Mark Hildreth http://stackoverflow.com/a/18522837 for the tip)