When receive events from websockets, we receive state as boolean