mirror of
https://github.com/zoriya/flood.git
synced 2026-06-04 19:36:42 +00:00
client, server: remove workarounds for legacy browsers
This commit is contained in:
@@ -7,10 +7,6 @@ class ServerEvent {
|
||||
|
||||
constructor(res: Response) {
|
||||
this.res = res;
|
||||
|
||||
// Add 2kb padding for IE.
|
||||
const padding = new Array(2049);
|
||||
res.write(`:${padding.join(' ')}\n`);
|
||||
}
|
||||
|
||||
emit<T extends keyof ServerEvents>(id: number, eventType: T, data: ServerEvents[T]) {
|
||||
|
||||
Reference in New Issue
Block a user