chore: Remove WEBSOCKETS_ENABLED flag (#1383)

* chore: Remove WEBSOCKETS_ENALBED flag

* lint
This commit is contained in:
Tom Moor
2020-07-22 22:44:24 -07:00
committed by GitHub
parent 2cc6d7add8
commit 109efcaa27
7 changed files with 141 additions and 157 deletions

View File

@ -13,7 +13,6 @@ import PoliciesStore from "stores/PoliciesStore";
import ViewsStore from "stores/ViewsStore";
import AuthStore from "stores/AuthStore";
import UiStore from "stores/UiStore";
import env from "env";
export const SocketContext: any = React.createContext();
@ -35,8 +34,6 @@ class SocketProvider extends React.Component<Props> {
@observable socket;
componentDidMount() {
if (!env.WEBSOCKETS_ENABLED) return;
this.socket = io(window.location.origin, {
path: "/realtime",
});