ipfs-shipyard / ipfs-shipyard/js-libp2p-react-native
Error: WebSocket Servers can not be created in the browser!
- Dominant language
- JavaScript
- Stars
- 11
- Forks
- 5
- PR merge metrics
- No merged PRs in 30d
Description
# Description
The basic example worked as expected. But when I tried to add custom listen multiaddrs, I got an error:
```diff
const node = await createLibp2p({
+ addresses: {
+ listen: ["/ip4/0.0.0.0/tcp/8004", "/ip4/0.0.0.0/tcp/8003/ws"],
+ },
transports: [
circuitRelayTransport({
discoverRelays: 1,
}),
...
```
```
Possible unhandled promise rejection (id: 0):
Error: WebSocket Servers can not be created in the browser!
```
# Versions
MacBook Air:
- M1, 2020
- Chip Apple M1
- macOS Sonoma 14.2.1
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.