MCPcopy
hub / github.com/partykit/partykit / eioPoll

Function eioPoll

packages/party.io/src/util.test.ts:80–89  ·  view source on GitHub ↗
(port: number, sid: string)

Source from the content-addressed store, hash-verified

78}
79
80export async function eioPoll(port: number, sid: string) {
81 const response = await fetch(
82 `http://localhost:${port}/socket.io/?EIO=4&transport=polling&sid=${sid}`,
83 {
84 method: "get"
85 }
86 );
87
88 return response.text();
89}
90
91export async function eioPush(port: number, sid: string, body: BodyInit) {
92 const response = await fetch(

Callers 6

middleware.test.tsFile · 0.90
catch_all.test.tsFile · 0.90
broadcast.test.tsFile · 0.90
handshake.test.tsFile · 0.90
event.test.tsFile · 0.90
runHandshakeFunction · 0.85

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected