Bot releases are visible (Hide)
Syntax:
io.on("connection", (socket) => {
socket.onAnyIncoming((event, ...args) => {
// ...
});
socket.onAnyOutgoing((event, ...args) => {
// ...
});
});
import { serve } from "https://deno.land/[email protected]/http/server.ts";
import {
createRedisAdapter,
createRedisClient,
Server,
} from "https://deno.land/x/[email protected]/mod.ts";
const [pubClient, subClient] = await Promise.all([
createRedisClient({
hostname: "localhost",
}),
createRedisClient({
hostname: "localhost",
}),
]);
const io = new Server({
adapter: createRedisAdapter(pubClient, subClient),
});
await serve(io.handler(), {
port: 3000,
});
Diff: https://github.com/socketio/socket.io-deno/compare/0.1.1...0.2.0
Published by darrachequesne about 2 years ago
Diff: https://github.com/socketio/socket.io-deno/compare/0.1.0...0.1.1
Published by darrachequesne about 2 years ago
This is the first release of this library 🚀