mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: allow upstream TestServerConnection with 'ws' Node.js module (#35367)
This commit is contained in:
parent
45fa3d17fc
commit
ef5e166fa8
@ -38,7 +38,7 @@ export class WebSocketTestServerTransport implements TestServerTransport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onmessage(listener: (message: string) => void) {
|
onmessage(listener: (message: string) => void) {
|
||||||
this._ws.addEventListener('message', event => listener(event.data));
|
this._ws.addEventListener('message', event => listener(event.data.toString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
onopen(listener: () => void) {
|
onopen(listener: () => void) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user