Webclient integration

Featured Image

To quickly expose all the places in the webclient which are touched by adding the socketViewer, do a project wide search for the string ‘enable/disable SocketViewer’

  1. yarn the extra deps yarn add @material-ui/core @material-ui/icons @material-ui/lab classnames

  2. Attach the component to the DOM in ~/src/views/appView.coffee

import SocketViewer from "~/src/socketViewer/SocketViewer";
socketViewerContainer: createReactView(SocketViewer);
@dom.append @components.socketViewerContainer.render()
  1. Hook up the redux in ~/src/reducer.js

We’re going to create a new store section for the component

import socketViewer from "./socketViewer/redux";
export default combineReducers({
  ...,
  socketViewer,
})
window.services.store.dispatch({
  type: "SOCKETVIEWER/RECEIVE/MESSAGE",
  message
});