profile
viewpoint

galiazzi/workers-loader 1

A webpack loader that registers a script as a Web Worker or Shared Worker

galiazzi/anime 0

JavaScript animation engine

galiazzi/Baileys 0

Lightweight full-featured typescript/javascript WhatsApp Web API

galiazzi/deno 0

A secure JavaScript and TypeScript runtime

galiazzi/deno-html-tools 0

Command line tool to use deno fmt and lint in html-like files

PublicEvent

create barnchgaliazzi/deno-html-tools

branch : feat/beautify

created branch time in 4 days

starteddenoland/deno_lint

started time in 7 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 9ba649e17a421a58fd7e0e0438c9862841a1d5c7

fix: import std streams link

view details

push time in 8 days

created taggaliazzi/vscode-deno-html-tools

tagv0.0.1

Vscode extension to format html-like files with deno

created time in 8 days

push eventgaliazzi/vscode-deno-html-tools

Dayan C. Galiazzi

commit sha 5bc6e4500815566d5b76416ff3f1c9e02a5122d3

feat: add icon

view details

push time in 8 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 349f8911cefb6a7e84b21c4875821b37a4855c14

fix: multiple tags script

view details

push time in 8 days

push eventgaliazzi/vscode-deno-html-tools

Dayan C. Galiazzi

commit sha 239ad767807f1efb3362bfcc349aec9fc06cd558

feat: update readme and add ci

view details

push time in 8 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 343107ef8d21be70f836d6788a415ac0b7a33db8

docs: fix empty block

view details

push time in 8 days

created taggaliazzi/deno-html-tools

tagv0.1.0

Command line tool to use deno fmt and lint in html-like files

created time in 8 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha a268049eb3ecd499195b955d2d41e6a1bfcebd68

doc: add ci badge

view details

push time in 8 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 76ea6912d5e390138e1bae07f923b8aad067bc8c

fix: stdin fmt check

view details

push time in 8 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha a50cd4b04766ba0ef006be2a6a5353cb7f40c486

chore: src folder

view details

push time in 8 days

create barnchgaliazzi/vscode-deno-html-tools

branch : main

created branch time in 10 days

created repositorygaliazzi/vscode-deno-html-tools

created time in 10 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 6c3e11fa947c51f77f3f8c8cbff7f4144a37dfc4

feat: add stdin fmt

view details

push time in 11 days

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 4bad293261d1a5eb3df3cd91258aa86497a454b0

ci: add github ci

view details

push time in 11 days

PublicEvent

push eventgaliazzi/deno-html-tools

Dayan C. Galiazzi

commit sha 70c7cdc12715b8912893c5c20c526ccad8477731

fix: regex check file extension

view details

push time in 17 days

startedwkhtmltopdf/wkhtmltopdf

started time in 21 days

issue commentdenoland/deno

WebSocket event `close` dispatches twice when calling `WebSocket.close()`

I see that last close event it was called on error event.

const w = new WebSocket("ws://localhost:8000");

w.addEventListener("close", (ev) => {
  console.log("CLOSE", ev.code, ev.reason);
});
w.addEventListener("error", (ev) => {
  console.log("ERROR", ev);
});

setTimeout(() => {
  w.close(3000, "close test");
}, 2_000);

Result:

CLOSE 3000 close test
ERROR ErrorEvent {
  bubbles: false,
  cancelable: false,
  composed: false,
  currentTarget: WebSocket {
    [Symbol()]: {
      assignedSlot: false,
      hasActivationBehavior: false,
      host: null,
      listeners: { close: [Array], error: [Array] },
      mode: ""
    },
    [Symbol("[[rid]]")]: 4,
    [Symbol("[[readyState]]")]: 3,
    [Symbol("[[extensions]]")]: "",
    [Symbol("[[protocol]]")]: "",
    [Symbol("[[url]]")]: "ws://localhost:8000/",
    [Symbol("[[binaryType]]")]: "blob",
    [Symbol("[[bufferedAmount]]")]: 0,
    [Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]")
  },
  defaultPrevented: false,
  eventPhase: 2,
  srcElement: null,
  target: WebSocket {
    [Symbol()]: {
      assignedSlot: false,
      hasActivationBehavior: false,
      host: null,
      listeners: { close: [Array], error: [Array] },
      mode: ""
    },
    [Symbol("[[rid]]")]: 4,
    [Symbol("[[readyState]]")]: 3,
    [Symbol("[[extensions]]")]: "",
    [Symbol("[[protocol]]")]: "",
    [Symbol("[[url]]")]: "ws://localhost:8000/",
    [Symbol("[[binaryType]]")]: "blob",
    [Symbol("[[bufferedAmount]]")]: 0,
    [Symbol("[[webidl.brand]]")]: Symbol("[[webidl.brand]]")
  },
  returnValue: true,
  timeStamp: 1640104412969,
  type: "error",
  message: "WebSocket protocol error: Connection reset without closing handshake",
  filename: "",
  lineno: 0,
  colno: 0,
  error: null
}
CLOSE 0 
apacheli

comment created time in a month

issue commentdenoland/deno

WebSocket event `close` dispatches twice when calling `WebSocket.close()`

I make a test with deno 1.17.0

deno 1.17.0 (release, x86_64-apple-darwin)
v8 9.7.106.15
typescript 4.5.2

Example:

const w = new WebSocket("ws://localhost:8000");

w.addEventListener("close", (ev) => {
  console.log("CLOSE", ev.code, ev.reason);
});

setTimeout(() => {
  w.close(3000, "close test");
}, 2_000);

Close event is fired two times:

CLOSE 3000 close test
CLOSE 0 

Event close is also fired two times on server, if called from server.

Example:

import { Application } from "https://deno.land/x/oak@v10.1.0/mod.ts";

const app = new Application();

function handleWs(sock: WebSocket) {
  sock.addEventListener("close", (ev) => {
    console.log("close", ev.code, ev.reason);
  });
  setTimeout(() => sock.close(), 1_000);
}

app.use((ctx) => {
  if (ctx.isUpgradable) {
    const socket = ctx.upgrade();
    console.log("ws connected");
    handleWs(socket);
    return;
  }
});

await app.listen({ port: 8000 });

Log:

ws connected
close 1005 
close 1005 
apacheli

comment created time in a month

push eventgaliazzi/docker-php

Dayan C. Galiazzi

commit sha 28f07da75cd3f1f405be31d72163fb0fa3e3ea12

fix: removed json ext

view details

push time in 2 months

push eventgaliazzi/docker-php

Dayan C. Galiazzi

commit sha 1b6b44172b1c4fa5129e918b3d94b4a05ceedb97

tt

view details

push time in 2 months

push eventgaliazzi/docker-php

Dayan C. Galiazzi

commit sha 464c1903e1e2079ec0b9d459eb7d704967503139

tt

view details

push time in 2 months

create barnchgaliazzi/docker-php

branch : 8.0

created branch time in 2 months

delete branch galiazzi/docker-php

delete branch : master

delete time in 2 months

create barnchgaliazzi/docker-php

branch : main

created branch time in 2 months

push eventgaliazzi/docker-php

Dayan C. Galiazzi

commit sha 64a14180c6d6fe985fb214beeb3a0f6452704a70

ci: brach control

view details

push time in 2 months

push eventgaliazzi/docker-php

Dayan C. Galiazzi

commit sha c849a331933282913b27892340a2e95c96a25d19

fix: ci

view details

push time in 2 months

more