Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import * as Protocol from '../../protocol/protocol.chat';
- const message: Protocol.ChatMessage = new Protocol.ChatMessage({
- nickname: 'noname',
- message: 'Hello World!',
- created: new Date()
- });
- const packet: Uint8Array = message.stringify();
- // Send packet somewhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement