Skip to content

Instantly share code, notes, and snippets.

@amitrahav
Created May 14, 2021 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amitrahav/71c5651d21593b7f11e9827eca834052 to your computer and use it in GitHub Desktop.
Save amitrahav/71c5651d21593b7f11e9827eca834052 to your computer and use it in GitHub Desktop.
SocketVsSSE
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