Skip to content

Commit 374d602

Browse files
committed
fix(node_transport): specify Uint8Array type for frame argument in socket.on("data") listener
v25, the inferred type changed to string | NonSharedBuffer Signed-off-by: Alberto Ricart <alberto@synadia.com>
1 parent 360f70d commit 374d602

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

transport-node/src/node_transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export class NodeTransport implements Transport {
147147
peekInfo(): Promise<ServerInfo> {
148148
const d = deferred<ServerInfo>();
149149
let peekError: Error;
150-
this.socket.on("data", (frame) => {
150+
this.socket.on("data", (frame: Uint8Array) => {
151151
this.yields.push(frame);
152152
const t = DataBuffer.concat(...this.yields);
153153
const pm = extractProtocolMessage(t);

0 commit comments

Comments
 (0)