Skip to content

Commit

Permalink
Update index.ts
Browse files Browse the repository at this point in the history
feat: add log
  • Loading branch information
luzhenqian authored Mar 15, 2023
1 parent c6bddd3 commit 7cf7e7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export class WebTransportPolyfill {
this.#ws = new WebSocket(url);
this.#ws.binaryType = 'arraybuffer';

console.log('using webtransport polyfill!');

this.closed = new Promise((resolve, reject) => {
if(!this.#ws) {
return reject(Error('WebTransport is closed'));
Expand Down

0 comments on commit 7cf7e7f

Please sign in to comment.