MCPcopy Create free account

hub / github.com/ambianic/peerfetch / functions

Functions49 in github.com/ambianic/peerfetch

↓ 13 callersMethodget
* * Similar to axious get(url,[config]) * * @see {@link https://github.com/axios/axios#axiosgeturl-config} * * @param {*} url resource
javascript/src/peerfetch.ts:445
↓ 4 callersMethodrequest
* Convenience method for developers familiar with axios.request(config) * * @see {@link https://github.com/axios/axios#axiosrequestconfig} * @se
javascript/src/peerfetch.ts:413
↓ 2 callersMethod_checkResponseReady
(ticket: number)
javascript/src/peerfetch.ts:608
↓ 2 callersMethod_pendingRequests
* Check if there are any pending requests waiting in line.
javascript/src/peerfetch.ts:570
↓ 2 callersMethod_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 callersMethod_setPeerConnectionHandlers
(peerConnection: Peer.DataConnection, setupResolve: Function, setupReject: Function)
javascript/src/peerfetch.ts:211
↓ 1 callersFunction_config_logger
()
python/src/peerfetch/proxy.py:364
↓ 1 callersMethod_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 callersMethod_enqueueRequest
(request: {})
javascript/src/peerfetch.ts:505
↓ 1 callersFunction_fetch
(url: str = None, method: str = 'GET', json: str = None, data = None)
python/src/peerfetch/proxy.py:190
↓ 1 callersFunction_loadConfig
()
python/src/peerfetch/proxy.py:104
↓ 1 callersFunction_loadPeerId
Load and reuse saved peer ID if there is one.
python/src/peerfetch/proxy.py:91
↓ 1 callersFunction_ping
(peer_connection=None, stop_flag=None)
python/src/peerfetch/proxy.py:222
↓ 1 callersFunction_pong
Respond to client ping.
python/src/peerfetch/proxy.py:211
↓ 1 callersMethod_processNextTicketInLine
()
javascript/src/peerfetch.ts:559
↓ 1 callersMethod_receiveResponse
(ticket: number)
javascript/src/peerfetch.ts:624
↓ 1 callersFunction_saveConfig
()
python/src/peerfetch/proxy.py:130
↓ 1 callersFunction_savePeerId
(peerId=None)
python/src/peerfetch/proxy.py:83
↓ 1 callersMethod_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 callersFunction_setPeerConnectionHandlers
(peerConnection)
python/src/peerfetch/proxy.py:234
↓ 1 callersFunction_setPnPServiceConnectionHandlers
(peer=None)
python/src/peerfetch/proxy.py:138
↓ 1 callersMethod_setSignalingServiceConnectionHandlers
(peer: Peer, setupResolve: Function, setupReject: Function)
javascript/src/peerfetch.ts:133
↓ 1 callersFunction_shutdown
()
python/src/peerfetch/proxy.py:383
↓ 1 callersFunction_start
()
python/src/peerfetch/proxy.py:374
↓ 1 callersMethod_stopPing
* Stop keepalive pings.
javascript/src/peerfetch.ts:361
↓ 1 callersMethod_ticketProcessed
Move on to next pending ticket for the HTTP request queue
javascript/src/peerfetch.ts:387
↓ 1 callersMethodconnect
* * 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 callersFunctionjoin_peer_room
Join a peer room with other local peers.
python/src/peerfetch/proxy.py:74
↓ 1 callersMethodjsonify
(data: any)
javascript/src/peerfetch.ts:594
↓ 1 callersFunctionmain
()
python/src/peerfetch/proxy.py:399
↓ 1 callersFunctionmake_discoverable
Enable remote peers to find and connect to this peer.
python/src/peerfetch/proxy.py:330
↓ 1 callersFunctionpnp_service_connect
Create a Peer instance and register with PnP signaling server.
python/src/peerfetch/proxy.py:297
↓ 1 callersMethodpost
* * 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 callersMethodput
* * 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 callersFunctionsleep
(ms: number)
javascript/src/peerfetch.ts:650
↓ 1 callersMethodtextDecode
(arrayBuffer: any)
javascript/src/peerfetch.ts:576
Methodconstructor
* * @param config: PeerOptions provide information such as signaling server host and port.
javascript/src/peerfetch.ts:91
Methoddisconnect
* Tead down connections to remote peer and signaling server.
javascript/src/peerfetch.ts:127
Methodfetch
* * 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
Functionget_hello
Returns Hello World!.
examples/helloworld/edge_device/fastapi_app.py:55
Functionpc_close
()
python/src/peerfetch/proxy.py:293
Functionpc_data
(data)
python/src/peerfetch/proxy.py:242
Functionpc_open
()
python/src/peerfetch/proxy.py:237
Functionpeer_close
()
python/src/peerfetch/proxy.py:171
Functionpeer_connection
(peerConnection)
python/src/peerfetch/proxy.py:185
Functionpeer_disconnected
(peerId)
python/src/peerfetch/proxy.py:160
Functionpeer_error
(err)
python/src/peerfetch/proxy.py:176
Functionpeer_open
(id)
python/src/peerfetch/proxy.py:142
Functionpost_echo
Echoes request.
examples/helloworld/edge_device/fastapi_app.py:60