MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / resetCompression

Method resetCompression

framework/framework/server.ts:277–281  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275 counter = 0;
276
277 resetCompression() {
278 this.counter = 0;
279 this.compression = new Shorty();
280 this.conn.send('shorty');
281 }
282
283 send(data: any) {
284 let payload = typeof data === 'string' ? data : JSON.stringify(data, serializer(false, this));

Callers 2

sendMethod · 0.95
handleWSMethod · 0.80

Calls 1

sendMethod · 0.45

Tested by

no test coverage detected