@ethereumjs/devp2p / les / LES
les.LES
-
EventEmitter
↳ LES
- _getStatusString
- _handleMessage
- _handleStatus
- addListener
- emit
- eventNames
- getMaxListeners
- getMsgPrefix
- getVersion
- listenerCount
- listeners
- off
- on
- once
- prependListener
- prependOnceListener
- rawListeners
- removeAllListeners
- removeListener
- sendMessage
- sendStatus
- setMaxListeners
- listenerCount
- once
• new LES(version
, peer
, send
)
Name | Type |
---|---|
version |
number |
peer |
Peer |
send |
any |
EventEmitter.constructor
packages/devp2p/src/les/index.ts:19
• _peer: Peer
packages/devp2p/src/les/index.ts:15
• _peerStatus: null
| Status
packages/devp2p/src/les/index.ts:18
• _send: any
packages/devp2p/src/les/index.ts:16
• _status: null
| Status
packages/devp2p/src/les/index.ts:17
• _statusTimeoutId: Timeout
packages/devp2p/src/les/index.ts:19
• _version: any
packages/devp2p/src/les/index.ts:14
▪ Static
defaultMaxListeners: number
EventEmitter.defaultMaxListeners
node_modules/@types/node/events.d.ts:20
▪ Static
les2: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/les/index.ts:34
▪ Static
les3: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/les/index.ts:35
▪ Static
les4: Object
Name | Type |
---|---|
constructor |
typeof LES |
length |
number |
name |
string |
version |
number |
packages/devp2p/src/les/index.ts:36
▸ _getStatusString(status
): string
Name | Type |
---|---|
status |
Status |
string
packages/devp2p/src/les/index.ts:124
▸ _handleMessage(code
, data
): void
Name | Type |
---|---|
code |
MESSAGE_CODES |
data |
any |
void
packages/devp2p/src/les/index.ts:38
▸ _handleStatus(): void
void
packages/devp2p/src/les/index.ts:100
▸ addListener(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.addListener
node_modules/@types/node/globals.d.ts:595
▸ emit(event
, ...args
): boolean
Name | Type |
---|---|
event |
string | symbol |
...args |
any [] |
boolean
EventEmitter.emit
node_modules/@types/node/globals.d.ts:605
▸ eventNames(): (string
| symbol
)[]
(string
| symbol
)[]
EventEmitter.eventNames
node_modules/@types/node/globals.d.ts:610
▸ getMaxListeners(): number
number
EventEmitter.getMaxListeners
node_modules/@types/node/globals.d.ts:602
▸ getMsgPrefix(msgCode
): string
Name | Type |
---|---|
msgCode |
MESSAGE_CODES |
string
packages/devp2p/src/les/index.ts:225
▸ getVersion(): any
any
packages/devp2p/src/les/index.ts:120
▸ listenerCount(type
): number
Name | Type |
---|---|
type |
string | symbol |
number
EventEmitter.listenerCount
node_modules/@types/node/globals.d.ts:606
▸ listeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
EventEmitter.listeners
node_modules/@types/node/globals.d.ts:603
▸ off(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.off
node_modules/@types/node/globals.d.ts:599
▸ on(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.on
node_modules/@types/node/globals.d.ts:596
▸ once(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.once
node_modules/@types/node/globals.d.ts:597
▸ prependListener(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.prependListener
node_modules/@types/node/globals.d.ts:608
▸ prependOnceListener(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.prependOnceListener
node_modules/@types/node/globals.d.ts:609
▸ rawListeners(event
): Function
[]
Name | Type |
---|---|
event |
string | symbol |
Function
[]
EventEmitter.rawListeners
node_modules/@types/node/globals.d.ts:604
▸ removeAllListeners(event?
): LES
Name | Type |
---|---|
event? |
string | symbol |
EventEmitter.removeAllListeners
node_modules/@types/node/globals.d.ts:600
▸ removeListener(event
, listener
): LES
Name | Type |
---|---|
event |
string | symbol |
listener |
(...args : any []) => void |
EventEmitter.removeListener
node_modules/@types/node/globals.d.ts:598
▸ sendMessage(code
, payload
): void
Name | Type | Description |
---|---|---|
code |
MESSAGE_CODES | Message code |
payload |
any |
Payload (including reqId, e.g. [1, [437000, 1, 0, 0]] ) |
void
packages/devp2p/src/les/index.ts:178
▸ sendStatus(status
): void
Name | Type |
---|---|
status |
Status |
void
packages/devp2p/src/les/index.ts:148
▸ setMaxListeners(n
): LES
Name | Type |
---|---|
n |
number |
EventEmitter.setMaxListeners
node_modules/@types/node/globals.d.ts:601
▸ Static
listenerCount(emitter
, event
): number
deprecated
since v4.0.0
Name | Type |
---|---|
emitter |
EventEmitter |
event |
string | symbol |
number
EventEmitter.listenerCount
node_modules/@types/node/events.d.ts:17
▸ Static
once(emitter
, event
): Promise
<any[]>
Name | Type |
---|---|
emitter |
NodeEventTarget |
event |
string | symbol |
Promise
<any[]>
EventEmitter.once
node_modules/@types/node/events.d.ts:13
▸ Static
once(emitter
, event
): Promise
<any[]>
Name | Type |
---|---|
emitter |
DOMEventTarget |
event |
string |
Promise
<any[]>
EventEmitter.once
node_modules/@types/node/events.d.ts:14