#Bun.listen TCP Server
1 messages · Page 1 of 1 (latest)
try that
idk if you can do the same for TCP socket
in websocket you can do something like socket.data
so if it's the same you can treat it as a global variable
i mean split that client into another file and import when you need
move the client code to another file then just import from it
then create an instance of that in that file and export it
you need to do like
socket.data.client