mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-15 20:40:01 -04:00
10 lines
282 B
JavaScript
10 lines
282 B
JavaScript
import http from 'http';
|
|
import { Server as Bare } from './Server.mjs';
|
|
|
|
const bare = new Bare('/');
|
|
|
|
http.createServer().on('request', (req, res) =>
|
|
bare.route_request(req, res)
|
|
).on('upgrade', (req, socket, head) =>
|
|
bare.route_upgrade(req, socket, head)
|
|
).listen(4545);
|