terrible/app/utils/long-poll.js
2024-03-12 11:20:28 -05:00

8 lines
196 B
JavaScript

import {stream} from './stream';
export function longPoll(request, init) {
const headers = new Headers();
headers.set('Content-Type', 'text/html');
return stream(request, headers, init);
}