swiftsocket / SwiftSocket

The easy way to use sockets on Apple platforms
BSD 3-Clause "New" or "Revised" License
1.68k stars 400 forks source link

can I send message from TCPServer to client? #208

Open dipenshivlab opened 3 years ago

dipenshivlab commented 3 years ago

I am implementing a Mac OSX app, where my Mac app has to work as server, and client will be cloud extension. cloud will try to connect to my server. once it get connected and I get client in server.accept , I have to send message from server(Mac app) to client. I am not able to find how to do that. I tried to add my own method to TCPServer class but it doesn't work at all. when I call that method, it just crash the app.