add scope to example WebSocket callback
Merge pull request #477 from MartinNowak/patch-5

add scope to example WebSocket callback