Skip to content

Instantly share code, notes, and snippets.

View amitrahav's full-sized avatar

Amit Rahav amitrahav

  • HourOne
  • Tel-Aviv Israel
View GitHub Profile
import React from 'react'
import { connect } from 'react-redux';
import MessagesActions from './store/messages/MessagesActions';
class SSEComponent extends React.Component{
componentDidMount(){
// Open SSE connection with server - listen messages for the first index video
this.props.openVideoConnection(1)
}
render(){
return (