Bug Fixes
- check if websocket is open before writing (#22) (d08f8f2)
- make socket#nsp public (84d97be)
- use Deno.serve() instead of serve() (5a27581)
BREAKING CHANGE
Please use Deno.serve()
instead of serve()
, which was removed in Deno v1.
Before:
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
const io = new Server();
await serve(io.handler(), {
port: 3000,
});
After:
import { Server } from "https://deno.land/x/[email protected]/mod.ts";
const io = new Server();
Deno.serve({
handler: io.handler(),
port: 3000,
});
Diff: 0.2.0...0.2.1