Add developer guide section
This commit is contained in:
parent
579c6ee301
commit
b84db04f68
@ -141,6 +141,8 @@ Peer.prototype.disconnect = function() {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a Message to the remote peer.
|
* Send a Message to the remote peer.
|
||||||
|
*
|
||||||
|
* @param {Message} message - A message instance
|
||||||
*/
|
*/
|
||||||
Peer.prototype.sendMessage = function(message) {
|
Peer.prototype.sendMessage = function(message) {
|
||||||
this.socket.write(message.serialize(this.network));
|
this.socket.write(message.serialize(this.network));
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user