You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
547 B
25 lines
547 B
4 months ago
|
import { Polling } from "./polling";
|
||
|
export declare class JSONP extends Polling {
|
||
|
private readonly head;
|
||
|
private readonly foot;
|
||
|
/**
|
||
|
* JSON-P polling transport.
|
||
|
*
|
||
|
* @api public
|
||
|
*/
|
||
|
constructor(req: any);
|
||
|
/**
|
||
|
* Handles incoming data.
|
||
|
* Due to a bug in \n handling by browsers, we expect a escaped string.
|
||
|
*
|
||
|
* @api private
|
||
|
*/
|
||
|
onData(data: any): void;
|
||
|
/**
|
||
|
* Performs the write.
|
||
|
*
|
||
|
* @api private
|
||
|
*/
|
||
|
doWrite(data: any, options: any, callback: any): void;
|
||
|
}
|