Create a super primitive websocket server

This commit is contained in:
Oliver-Akins 2022-01-04 20:30:11 -07:00
parent 7e5a4ffe86
commit cb09d4a9df
5 changed files with 90 additions and 0 deletions

View file

@ -0,0 +1,15 @@
import { WebsocketEvent } from "../types/WebsocketEvent";
import {
IServerInfoRequest,
IServerInfoResponse
} from "common";
const data: WebsocketEvent = {
name: "in:server.info",
handler(io, socket, data: IServerInfoRequest): IServerInfoResponse {
return {
version: "0.1",
};
},
};
export default data;