Skip to main content
Version: 4.x.x

interceptListener


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

Description

Defined in socket/socket.utils.ts:17

Preview

interceptListener<Socket>(interceptors, response, socket)

Parameters

NameDetails

interceptors

Required

MessageCallbackType<Socket, MessageEvent<any>>[]

response

Required

MessageEvent<any>

socket

Required

Socket

Returns

MessageEvent<any>