Home Reference Source
public class | source

SocketProtocol

acknowledgment doesn't make much difference between event vs ackwnowledgment

Static Method Summary

Static Private Methods
private static

_processBufferArray(data: *): *

Browser sockets receives ArrayBuffer and it is not compatible with Buffer (UIntArray) in the Browser

Method Summary

Public Methods
public

sendRequestSocket(request: *, requestData: *): *

public

sendRequestWaitOnce(request: *, requestData: *, answerSuffix: *, timeOutInterval: number): *

public

sendRequestWebPeer(request: *, requestData: *): *

Private Methods
private

_isIterable(obj: *): *

Static Private Methods

private static _processBufferArray(data: *): * source

Browser sockets receives ArrayBuffer and it is not compatible with Buffer (UIntArray) in the Browser

Params:

NameTypeAttributeDescription
data *

Return:

*

Public Methods

public sendRequestSocket(request: *, requestData: *): * source

Params:

NameTypeAttributeDescription
request *
requestData *

Return:

*

public sendRequestWaitOnce(request: *, requestData: *, answerSuffix: *, timeOutInterval: number): * source

Params:

NameTypeAttributeDescription
request *
requestData *
answerSuffix *
timeOutInterval number
  • optional
  • default: 3000

Return:

*

public sendRequestWebPeer(request: *, requestData: *): * source

Params:

NameTypeAttributeDescription
request *
requestData *

Return:

*

Private Methods

private _isIterable(obj: *): * source

Params:

NameTypeAttributeDescription
obj *

Return:

*