Home Reference Source
public class | source

NodeProtocol

Static Method Summary

Static Public Methods
public static

broadcastRequest(request: *, data: *, type: *, exceptSockets: *): boolean

boradcast to every sockets except the exceptSockets

Member Summary

Public Members
public

latency: *

Method Summary

Public Methods
public
public

async justSendHello()

public

processHello(response: *, validationDoubleConnectionsTypes: *): boolean

public

async sendHello(validationDoubleConnectionsTypes: *, process: boolean): *

public

sendLastBlock(callback: *)

Static Public Methods

public static broadcastRequest(request: *, data: *, type: *, exceptSockets: *): boolean source

boradcast to every sockets except the exceptSockets

Params:

NameTypeAttributeDescription
request *
data *
type *
exceptSockets *

Return:

boolean

Public Members

public latency: * source

Public Methods

public async calculateLatency() source

public async justSendHello() source

public processHello(response: *, validationDoubleConnectionsTypes: *): boolean source

Params:

NameTypeAttributeDescription
response *
validationDoubleConnectionsTypes *

Return:

boolean

public async sendHello(validationDoubleConnectionsTypes: *, process: boolean): * source

Params:

NameTypeAttributeDescription
validationDoubleConnectionsTypes *
process boolean
  • optional
  • default: true

Return:

*

public sendLastBlock(callback: *) source

Params:

NameTypeAttributeDescription
callback *