zwopple / PocketSocket

Objective-C websocket library for building things that work in realtime on iOS and OS X.
Other
414 stars 129 forks source link

Expose remote address of clients and real port of server #49

Open becvert opened 8 years ago

becvert commented 8 years ago

Hi. Would it be possible to expose the remote addresses and the real server port when it is initialized with 0? The couchbasedeps fork does that. Thank you very much

robertjpayne commented 8 years ago

@becvert if you implement - (BOOL)server:(PSWebSocketServer *)server acceptWebSocketWithRequest:(NSURLRequest *)request address:(NSData *)address trust:(SecTrustRef)trust response:(NSHTTPURLResponse **)response; you should be able to map this in your own code.

For the time being I'm not storing or exposing this information.

becvert commented 8 years ago

OK I'll have a look. thank you.

whizdummy commented 6 years ago

Are there any updates with this one?

hyiso commented 5 years ago

Also need for this