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’
yarn the extra deps
yarn add @material-ui/core @material-ui/icons @material-ui/lab classnames
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()
~/src/reducer.js
We’re going to create a new store section for the component
import socketViewer from "./socketViewer/redux";
export default combineReducers({
...,
socketViewer,
})
~/src/communicator/index.coffee
(line 26)window.services.store.dispatch({
type: "SOCKETVIEWER/RECEIVE/MESSAGE",
message
});