echo-protocol

#1

socket = new WebSocket(url.value, “echo-protocol”)

how can the autobahn java websocket handle the javascript /websocket request

that includes an initial connection ‘protocol’ ?

0 Likes

#2

try {
sess.connect(wsUri, new String[] {“myawesomeprotocol”}, new
WebSocketConnectionHandler() {

i’ll try that, it was not seen in the api document.

···

On Friday, April 26, 2013 7:23:21 PM UTC-7, interfaith wrote:

socket = new WebSocket(url.value, “echo-protocol”)

how can the autobahn java websocket handle the javascript /websocket request

that includes an initial connection ‘protocol’ ?

0 Likes

#3

no that is not allowed… now what ?

···

On Friday, April 26, 2013 7:23:21 PM UTC-7, interfaith wrote:

socket = new WebSocket(url.value, “echo-protocol”)

how can the autobahn java websocket handle the javascript /websocket request

that includes an initial connection ‘protocol’ ?

0 Likes

#4

Here is an example of how you add WebSocket subprotocol(s) for announcement during the initial WebSocket opening handshake:

https://github.com/tavendo/AutobahnAndroid/blob/master/Autobahn/src/de/tavendo/autobahn/WampConnection.java#L192

Hope this helps,

Tobias

···

Am 27.04.2013 04:33, schrieb interfaith:

no that is not allowed.... now what ?

On Friday, April 26, 2013 7:23:21 PM UTC-7, interfaith wrote:

    socket = new WebSocket(url.value, "echo-protocol")

    how can the autobahn java websocket handle the javascript
    /websocket request
    that includes an initial connection 'protocol' ?

0 Likes