added check_origin to fix bug

this fixes the bug so that using websocket works correctly
Merge pull request #45 from woolfel/master

added check_origin to fix bug