Created
May 14, 2021 18:59
-
-
Save amitrahav/71c5651d21593b7f11e9827eca834052 to your computer and use it in GitHub Desktop.
SocketVsSSE
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import MessagesActionTypes from './MessagesActionTypes'; | |
import SSEConstants from '../sse/sseConstants'; | |
const videoMessages = (indexIdentifier) => ({ | |
type: SSEConstants.SSE_REQUEST, | |
payload: {indexIdentifier}, | |
url: `videos/subscribe`, | |
baseAction: MessagesActionTypes.MessagesForVideo, | |
stopSreamingOn: { | |
key: "progress", | |
value: "100" | |
}, | |
channel: "pipeline_progress" | |
}); | |
const MessagesActions = { | |
videoMessages | |
}; | |
export default MessagesActions; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment