File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ $ eaglerrelayjs --port 8080
2525
2626### Existing App
2727``` js
28- const http = require ( ' http' ) ;
29- const express = require ( ' express' ) ;
30- const { EaglerSPRelay } = require ( ' eaglerrelayjs' ) ;
28+ import http from ' http' ;
29+ import express from ' express' ;
30+ import { EaglerSPRelay } from ' eaglerrelayjs' ;
3131
3232const app = express ();
3333const server = http .createServer (app);
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ import { RelayPacket01ICEServers } from '../pkt/RelayPacket01ICEServers';
1212import { RelayPacket69Pong } from '../pkt/RelayPacket69Pong' ;
1313import { RelayVersion } from '../utils/RelayVersion' ;
1414import { LocalWorld , RelayPacket07LocalWorlds } from '../pkt/RelayPacket07LocalWorlds' ;
15- import '../pkt/RegisterPackets' ;
1615import { SocketAddress } from '../utils/SocketAddress' ;
16+ import '../pkt/RegisterPackets' ;
1717
1818export class EaglerSPRelay {
1919 private readonly WSS : WebSocketServer ;
You can’t perform that action at this time.
0 commit comments