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