Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ambianic/peerfetch
/ functions
Functions
49 in github.com/ambianic/peerfetch
⨍
Functions
49
◇
Types & classes
6
↳
Endpoints
2
↓ 13 callers
Method
get
* * Similar to axious get(url,[config]) * * @see {@link https://github.com/axios/axios#axiosgeturl-config} * * @param {*} url resource
javascript/src/peerfetch.ts:445
↓ 4 callers
Method
request
* Convenience method for developers familiar with axios.request(config) * * @see {@link https://github.com/axios/axios#axiosrequestconfig} * @se
javascript/src/peerfetch.ts:413
↓ 2 callers
Method
_checkResponseReady
(ticket: number)
javascript/src/peerfetch.ts:608
↓ 2 callers
Method
_pendingRequests
* Check if there are any pending requests waiting in line.
javascript/src/peerfetch.ts:570
↓ 2 callers
Method
_sendNextRequest
Send next pending request to remote peer. Requests are sent one at a time. Only when a previous request response arrives is the next reque
javascript/src/peerfetch.ts:528
↓ 2 callers
Method
_setPeerConnectionHandlers
(peerConnection: Peer.DataConnection, setupResolve: Function, setupReject: Function)
javascript/src/peerfetch.ts:211
↓ 1 callers
Function
_config_logger
()
python/src/peerfetch/proxy.py:364
↓ 1 callers
Method
_drawNewTicket
Return the next available ticket number for the HTTP request processing queue and simultaneously increment the ticket counter.
javascript/src/peerfetch.ts:372
↓ 1 callers
Method
_enqueueRequest
(request: {})
javascript/src/peerfetch.ts:505
↓ 1 callers
Function
_fetch
(url: str = None, method: str = 'GET', json: str = None, data = None)
python/src/peerfetch/proxy.py:190
↓ 1 callers
Function
_loadConfig
()
python/src/peerfetch/proxy.py:104
↓ 1 callers
Function
_loadPeerId
Load and reuse saved peer ID if there is one.
python/src/peerfetch/proxy.py:91
↓ 1 callers
Function
_ping
(peer_connection=None, stop_flag=None)
python/src/peerfetch/proxy.py:222
↓ 1 callers
Function
_pong
Respond to client ping.
python/src/peerfetch/proxy.py:211
↓ 1 callers
Method
_processNextTicketInLine
()
javascript/src/peerfetch.ts:559
↓ 1 callers
Method
_receiveResponse
(ticket: number)
javascript/src/peerfetch.ts:624
↓ 1 callers
Function
_saveConfig
()
python/src/peerfetch/proxy.py:130
↓ 1 callers
Function
_savePeerId
(peerId=None)
python/src/peerfetch/proxy.py:83
↓ 1 callers
Method
_schedulePing
* Schedule periodic pings to keep the datachannel alive. * Some routers and firewalls close open ports within seconds * without data packets flo
javascript/src/peerfetch.ts:339
↓ 1 callers
Function
_setPeerConnectionHandlers
(peerConnection)
python/src/peerfetch/proxy.py:234
↓ 1 callers
Function
_setPnPServiceConnectionHandlers
(peer=None)
python/src/peerfetch/proxy.py:138
↓ 1 callers
Method
_setSignalingServiceConnectionHandlers
(peer: Peer, setupResolve: Function, setupReject: Function)
javascript/src/peerfetch.ts:133
↓ 1 callers
Function
_shutdown
()
python/src/peerfetch/proxy.py:383
↓ 1 callers
Function
_start
()
python/src/peerfetch/proxy.py:374
↓ 1 callers
Method
_stopPing
* Stop keepalive pings.
javascript/src/peerfetch.ts:361
↓ 1 callers
Method
_ticketProcessed
Move on to next pending ticket for the HTTP request queue
javascript/src/peerfetch.ts:387
↓ 1 callers
Method
connect
* * Setup connection to a remote peer. * * @param remotePeerID valid remote peer ID in the p2p network. * @returns Promise that either res
javascript/src/peerfetch.ts:104
↓ 1 callers
Function
join_peer_room
Join a peer room with other local peers.
python/src/peerfetch/proxy.py:74
↓ 1 callers
Method
jsonify
(data: any)
javascript/src/peerfetch.ts:594
↓ 1 callers
Function
main
()
python/src/peerfetch/proxy.py:399
↓ 1 callers
Function
make_discoverable
Enable remote peers to find and connect to this peer.
python/src/peerfetch/proxy.py:330
↓ 1 callers
Function
pnp_service_connect
Create a Peer instance and register with PnP signaling server.
python/src/peerfetch/proxy.py:297
↓ 1 callers
Method
post
* * Similar to axious post(url, data, [config]) * * @see {@link https://github.com/axios/axios#axiosposturl-data-config-1} * @see {@link h
javascript/src/peerfetch.ts:479
↓ 1 callers
Method
put
* * Similar to axious get(url,[config]) * * @see {@link https://github.com/axios/axios#axiosputurl-data-config} * @see {@link https://mast
javascript/src/peerfetch.ts:461
↓ 1 callers
Function
sleep
(ms: number)
javascript/src/peerfetch.ts:650
↓ 1 callers
Method
textDecode
(arrayBuffer: any)
javascript/src/peerfetch.ts:576
Method
constructor
* * @param config: PeerOptions provide information such as signaling server host and port.
javascript/src/peerfetch.ts:91
Method
disconnect
* Tead down connections to remote peer and signaling server.
javascript/src/peerfetch.ts:127
Method
fetch
* * Similar to HTML fetch() * * @see {@link https://fetch.spec.whatwg.org/#dom-global-fetch} * @see {@link https://developer.mozilla.org/e
javascript/src/peerfetch.ts:500
Function
get_hello
Returns Hello World!.
examples/helloworld/edge_device/fastapi_app.py:55
Function
pc_close
()
python/src/peerfetch/proxy.py:293
Function
pc_data
(data)
python/src/peerfetch/proxy.py:242
Function
pc_open
()
python/src/peerfetch/proxy.py:237
Function
peer_close
()
python/src/peerfetch/proxy.py:171
Function
peer_connection
(peerConnection)
python/src/peerfetch/proxy.py:185
Function
peer_disconnected
(peerId)
python/src/peerfetch/proxy.py:160
Function
peer_error
(err)
python/src/peerfetch/proxy.py:176
Function
peer_open
(id)
python/src/peerfetch/proxy.py:142
Function
post_echo
Echoes request.
examples/helloworld/edge_device/fastapi_app.py:60