I want build static resource server and websocket server into one exe file. using the open source package pkg. but official documentation have not example.
I have a web app, and a websocket server, for demo, it's should running in a pc without node.js environment. so, the best practice is building these to a .exe file.
{
"bin": "server/index.js",
"pkg": {
"assets": [
"built/**/*"
]
}
}
seem like good, but I don't know how to config websocket server. for terminal result, click the .exe file, it's have two window: one for static resource server other for websocket server