iiegor / xat-server

A Node.js private server of xat.com
8 stars 2 forks source link

Basic Packet Builder #12

Closed Hotallday closed 8 years ago

Hotallday commented 8 years ago

Trying to help this project continue

iiegor commented 8 years ago

Hey, @Hotallday, first of all thanks for helping out with this project :smile:

It's great what you have done but I thought maybe we can make the packet builder something more easier to use and manipulate.

Something like this:

builder = require "./utils/builder"

packet = builder.create('m')
packet.append('t', 'My message')

return packet.compose()

What do you think?

Hotallday commented 8 years ago

No problem. And that looks better than what I made.

iiegor commented 8 years ago

@Hotallday Packet builder landed on f9b930dd75f910d58e7bfae5201daa9a9012c7ef.

Thanks for your help :smile: