```js ws.onmessage = function(){ }; ``` If some behavior is completed within a websocket message this needs to be wrapped within the Zone.