Closing a Websocket with another status code than 1000

#1

Hi,

I’m currently trying to evaluate the Android Autobahn library for inclusion in a project.

But I’m having trouble figuring out how I can disconnect with a specific status code.

WebSocketConnection only has a single disconnect() method that will always close the socket with status code 100.

Cheers

Kasper

0 Likes

#2

Hi,

I'm currently trying to evaluate the Android Autobahn library for
inclusion in a project.
But I'm having trouble figuring out how I can disconnect with a specific
status code.
WebSocketConnection only has a single disconnect() method that will
always close the socket with status code 100.

The close code is 1000.

Providing application defined close code for performing a WebSocket closing handshake is not implemented, though trivial. We are accepting patches;)

/Tobias

···

Am 10.12.2013 13:33, schrieb Kasper Nielsen:

Cheers
   Kasper

--
You received this message because you are subscribed to the Google
Groups "Autobahn" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to autobahnws+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes