Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import * as Protocol from '../../protocol/protocol.chat';
  2.  
  3. const message: Protocol.ChatMessage = new Protocol.ChatMessage({
  4. nickname: 'noname',
  5. message: 'Hello World!',
  6. created: new Date()
  7. });
  8.  
  9. const packet: Uint8Array = message.stringify();
  10.  
  11. // Send packet somewhere
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement