This file contains hidden or 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
| error_log logs/error.log; | |
| events { | |
| worker_connections 1024; | |
| } | |
| rtmp { | |
| server { | |
| listen 1935; | |
| chunk_size 4000; |
This file contains hidden or 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
| // Install-Package jose-rt | |
| using System; | |
| using System.Text; | |
| using System.Collections.Generic; | |
| using Jose; | |
| public class Program | |
| { | |
| public static void Main() |
This file contains hidden or 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 React, { Component } from 'react' | |
| import { ChatManager, TokenProvider } from '@pusher/chatkit' | |
| import MessageList from './MessageList' | |
| import SendMessageForm from './SendMessageForm' | |
| +import OnlineList from './OnlineList' | |
| class Chat extends React.Component { | |
| state = { | |
| currentUser: null, |
This file contains hidden or 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
| // ./src/OnlineList.js | |
| import React, { Component } from 'react' | |
| import { | |
| ListView, | |
| ListViewSection, | |
| ListViewSectionHeader, | |
| ListViewRow, | |
| Text | |
| } from 'react-desktop/macOs' |
This file contains hidden or 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
| // ./src/Chat.js | |
| import React, { Component } from 'react' | |
| import { ChatManager, TokenProvider } from '@pusher/chatkit' | |
| import MessageList from './MessageList' | |
| +import SendMessageForm from './SendMessageForm' | |
| class Chat extends React.Component { | |
| state = { | |
| currentUser: null, |
This file contains hidden or 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
| // ./src/SendMessageForm.js | |
| import React, { Component } from 'react' | |
| import { Button, TextInput } from 'react-desktop/macOs' | |
| class SendMessageForm extends Component { | |
| state = { | |
| text: '' | |
| } |
This file contains hidden or 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
| // ./src/Chat.js | |
| import React, { Component } from 'react' | |
| import { ChatManager, TokenProvider } from '@pusher/chatkit' | |
| +import MessageList from './MessageList' | |
| class Chat extends React.Component { | |
| state = { | |
| - currentUser: null | |
| + currentUser: null, |
This file contains hidden or 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
| // ./src/MessageList.js | |
| import React, { Component } from 'react' | |
| import { | |
| ListView, | |
| ListViewSection, | |
| ListViewSectionHeader, | |
| ListViewRow, | |
| Text | |
| } from 'react-desktop/macOs' |
This file contains hidden or 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
| /* ./src/index.css */ | |
| body { | |
| font-family: BlinkMacSystemFont, sans-serif; | |
| margin: 0; | |
| padding: 0; | |
| } | |
| .username-form { | |
| padding: 10px; |
This file contains hidden or 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
| // ./src/Chat.js | |
| import React, { Component } from 'react' | |
| import { ChatManager, TokenProvider } from '@pusher/chatkit' | |
| class Chat extends Component { | |
| state = { | |
| currentUser: null | |
| } |