File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,8 +61,9 @@ For this purpuse API could be used.
6161Middleware of ` edward ` . Options could be omitted.
6262
6363``` js
64- const edward = require (' edward' );
65- const express = require (' express' );
64+ import {edward } from ' edward' ;
65+ import express from ' express' ;
66+
6667const app = express ();
6768
6869app .use (edward ({
@@ -82,8 +83,9 @@ app.listen(31_337);
8283Could be used with [ socket.io] ( http://socket.io " Socket.io ") to handle editor events with.
8384
8485``` js
85- const io = require (' socket.io' );
86- const socket = io .listen (server);
86+ import {Server } from ' socket.io' ;
87+
88+ const socket = new Server (server);
8789
8890edward .listen (socket, {
8991 root: ' /' , // optional
Original file line number Diff line number Diff line change 2121 },
2222 "homepage" : " https://github.com/cloudcmd/edward" ,
2323 "engines" : {
24- "node" : " >=18 "
24+ "node" : " >=22 "
2525 },
2626 "scripts" : {
2727 "start" : " madrun start" ,
You can’t perform that action at this time.
0 commit comments