Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
import { ChatMessage } from '../interfaces/chat-message.model';
import { ChatStaticService, UserRegistrationResponse } from './chat-service';
export const chatServiceMockOf = (
chatHistory: ChatMessage[],
userRegistrationResponse: UserRegistrationResponse,
): ChatStaticService =>
class ChatServiceMock {
public static async getChatHistory(): Promise<ChatMessage[]> {
return chatHistory;
}
public static async registerUser(): Promise<UserRegistrationResponse> {
return userRegistrationResponse;
}
};
export default chatServiceMockOf;