File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11import cors from 'cors' ;
22import 'dotenv/config' ;
3- import type { IncomingMessage } from 'http' ;
43import { Schema } from 'effect' ;
54import express from 'express' ;
65import { SpaceEvent } from 'graph-framework-space-events' ;
@@ -16,7 +15,7 @@ app.use(express.json());
1615app . use ( cors ( ) ) ;
1716
1817app . get ( '/' , ( _req , res ) => {
19- res . send ( ` Server is running` ) ;
18+ res . send ( ' Server is running' ) ;
2019} ) ;
2120
2221const server = app . listen ( PORT , ( ) => {
@@ -25,7 +24,7 @@ const server = app.listen(PORT, () => {
2524
2625const decodeEvent = Schema . decodeUnknownEither ( SpaceEvent ) ;
2726
28- webSocketServer . on ( 'connection' , async ( webSocket : WebSocket , request : IncomingMessage ) => {
27+ webSocketServer . on ( 'connection' , async ( webSocket : WebSocket ) => {
2928 console . log ( 'Connection established' ) ;
3029 webSocket . on ( 'message' , async ( message ) => {
3130 const rawData = JSON . parse ( message . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments