Skip to main content
Version: 2.x.x

interceptListener


import { interceptListener } from "@hyper-fetch/sockets"

Description

Defined in socket/socket.utils.ts:17

Preview

interceptListener<SocketType>(interceptors, response, socket)

Parameters

NameDetails

interceptors

Required

MessageCallbackType<SocketType, MessageEvent<any>>[]

response

Required

MessageEvent<any>

socket

Required

SocketType

Returns

MessageEvent<any>