I have a separate ipfs node running created through ipfs core.
This is the config used to create the node
let ipfsConfig: any = {
repo: AppConfig.ipfs.repo,
EXPERIMENTAL: {
pubsub: true,
},
config: {
Bootstrap: ,
Addresses: {
API: β/ip4/0.0.0.0/tcp/5001β,
Swarm: [
β/ip4/0.0.0.0/tcp/4002β,
β/ip4/0.0.0.0/udp/4002/quicβ,
β/ip4/0.0.0.0/tcp/4003/wsβ,
],
},
},
libp2p: {
connectionProtector: preSharedKey({
psk: swarmKey
})
},
}
It has as event handler via libp2p connectionManager.
If I try to create a simple client server through ipfs-http-client create module connection refused error is being thrown. Is there something I am missing??