Quantcast
Channel: Emotiv
Viewing all articles
Browse latest Browse all 898

CORTEX API WebSocket

$
0
0

Hi all!

I’m trying to use the CORTEX API in my Android app (https://emotiv.github.io/cortex-docs/), however, I’m having problems with the initial connection to the socket.

I was testing several public WebSockets and the connection is established without problems. Nevertheless, it seems that the connection to wss://emotivcortex.com:54321 is down, or something similar is happening… Moreover, there is no example in the docs…

Specifically, I’m doing:

Request request = new Request.Builder().url("wss://emotivcortex.com:54321").build();
        EchoWebSocketListener listener = new EchoWebSocketListener();
        WebSocket ws = client.newWebSocket(request, listener);

, which works perfectly with other WebSockets. Why Emotiv one does not establish a connection?


Viewing all articles
Browse latest Browse all 898

Trending Articles