Here's what the minimal API looks like for my end-to-end typesafe websocket server with @reactjs hooks used in @trytriplex. Would this be useful in your project?