home-assistant / home-assistant-js-websocket

:aerial_tramway: JavaScript websocket client for Home Assistant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove extra 10 second check

balloob opened this issue · comments

We make sure expires is valid for another 10 extra seconds

return Date.now() > this.data.expires - 10000;

However, this is already done inside the token validation code on the backend.