alexbosworth / lightning

Lightning client methods
MIT License
127 stars 33 forks source link

Add send message types #49

Closed bkiac closed 3 years ago

bkiac commented 3 years ago

I added the types for the new message sender methods.

Is the type property intentionally optional in the sendMessageToPeer method while it's required in the message received event? I think the types should be the same, or type has a default value in the received message object?

alexbosworth commented 3 years ago

Yes type has a default value

bkiac commented 3 years ago

Thanks, in that case, I think this can be merged