@pumpkin-plugins/plugin-kit API / wasi-socket / fromIpSocketAddress
Function: fromIpSocketAddress()
fromIpSocketAddress(
socketAddress):Ipv4Endpoint|undefined
Defined in: tools/plugin-kit/src/wasi-socket.ts:39
Reads an IPv4 endpoint from a socket address a WASI socket reported.
Parameters
socketAddress
IpSocketAddress
Returns
Ipv4Endpoint | undefined
A copy of the address and the port, or undefined for an IPv6 address.