Skip to content

Commit

Permalink
Remove old socket code, try again
Browse files Browse the repository at this point in the history
  • Loading branch information
Aric Alves committed Nov 16, 2017
1 parent 780948c commit c972790
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 268 deletions.
6 changes: 3 additions & 3 deletions client/index.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>Fam.ly</title>
<title>Fam.ly</title>
</head>
<body>
<div id="homepage"></div>
<div id="homepage"></div>
<div id="room"></div>

<script src="dist/bundle.js"></script>
<script src="dist/bundle.js"></script>
</body>
</html>
3 changes: 1 addition & 2 deletions client/src/components/Homepage/homepage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import ReactDOM from 'react-dom';
import Search from './Search.jsx';
import RoomList from './RoomList.jsx';
import Sidebar from './Sidebar.jsx';
import io from 'socket.io-client';

class App extends React.Component {
constructor(props) {
Expand All @@ -14,7 +13,7 @@ class App extends React.Component {
}

componentDidMount() {
const socket = io('http://localhost'); // maybe need port?? TODO

}

render() {
Expand Down
5 changes: 5 additions & 0 deletions client/src/components/Room/RoomView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Playlist from './Playlist.jsx';
import Search from './Search.jsx';
import VideoDescription from './VideoDescription.jsx';


class RoomView extends React.Component {
constructor(props) {
super(props);
Expand All @@ -13,6 +14,10 @@ class RoomView extends React.Component {
};
}

componentDidMount() {

}

render() {
return (
<div>
Expand Down
Loading

0 comments on commit c972790

Please sign in to comment.