socket.io-android-chat icon indicating copy to clipboard operation
socket.io-android-chat copied to clipboard

How to set basic authorization in android?

Open sunnymopada opened this issue 10 years ago • 3 comments

in mSocket = IO.socket(Constants.CHAT_SERVER_URL) i want to send basic authorization details "Authorization","Basic 1234567890" please explain me how to send?

sunnymopada avatar Aug 17 '15 03:08 sunnymopada

I have never tried basic authentication with socket.io, but maybe it's possible since Java client can send http headers. Please see the doc https://github.com/socketio/engine.io-client-java#extra-features-only-for-java-client .

nkzawa avatar Aug 25 '15 05:08 nkzawa

Can you please tell me the code to check authorization at the server?

sunnymopada avatar Oct 16 '15 08:10 sunnymopada

Can you please tell me the code to check authorization at the server?

you can Find it here https://github.com/socketio/socket.io-client-java/issues/105

elsunhoty avatar Jan 08 '20 11:01 elsunhoty