SocketAdapter
import { SocketAdapter } from "@hyper-fetch/sockets"
Description
Defined in adapter/adapter.ts:8
Parameters
Name | Details |
---|---|
socket
|
|
Properties
listeners
listeners
Description
Defined in adapter/adapter.ts:10
Type
Map<string, Set<ListenerCallbackType<any>>>
Methods
emit()
emit()
Preview
emit(eventMessageId, emitter, ack)
Description
Defined in adapter/adapter.ts:208
Parameters
Name | Details |
---|---|
eventMessageId
|
|
emitter
|
|
ack
|
|
Return
Promise<void>
listen()
listen()
Preview
listen(listener, callback)
Description
Defined in adapter/adapter.ts:200
Parameters
Name | Details |
---|---|
listener
|
|
callback
|
|
Return
() => boolean