samedi 26 août 2017

Using autobahn websockets to subscribe to Poloniex feeds

I am trying to use autobahn websockets to connect to the poloniex feeds.

Poloniex provides API information here -- http://ift.tt/1YoICFJ

I am also using the examples on the Autobahn github page. I am able to make a transport layer connection and start a session but I'm running into an issue joining a realm.

join_future=session->join("realm1").then
([&](boost::future<uint64_t> joined) { 
    try {joined.get();} 
    catch(const std::exception &e) {
        std::cerr << e.what() << std::endl; 
        io.stop(); 
        return; 
    }
});
std::cerr << "Joined realm" << std::endl;

Below is the packet trace

starting io service

[2017-08-26 14:32:42] [connect] Successful connection
[2017-08-26 14:32:42] [connect] WebSocket Connection 104.20.12.48:443 v-2 "WebSocket++/0.7.0" / 101
transport connected
session started
TX message (125 octets) ...
TX message: hello ["realm2", {"authid":"", "authmethods":[], "roles":{"subscriber":{}, "callee":{"features":{"call_timeout":true}}, "publisher":{}, "caller":{"features":{"call_timeout":true}}}}]
[2017-08-26 14:32:42] [frame_header] Dispatching write containing 1 message(s) containing 6 header bytes and 125 payload bytes
[2017-08-26 14:32:42] [frame_header] Header Bytes: 
[0] (6) 82 FD 45 02 AA 95 

[2017-08-26 14:32:42] [frame_payload] Payload Bytes: 
[0] (125) [2] D6 03 0C E7 20 63 C6 F8 77 81 0C F4 30 76 C2 FC 21 A2 01 F4 30 76 C2 F8 20 76 C2 FA 21 71 3A 30 37 6D C6 F0 36 86 00 E6 30 60 D9 F6 37 6B C8 F0 37 82 0C F6 24 6E C6 F0 20 83 02 F3 20 63 DE E0 37 67 D9 14 E9 61 CB F9 29 5D DE FC 28 67 C5 E0 31 C1 03 E5 30 60 C6 FC 36 6A CF E7 C5 A4 C9 F4 29 6E CF E7 C4 AA CC F0 24 76 DF E7 20 71 2B 39 26 63 C6 F9 1A 76 C3 F8 20 6D DF E1 86 

[2017-08-26 14:32:42] [control] Control frame received with opcode 8
[2017-08-26 14:32:42] [frame_header] Dispatching write containing 1 message(s) containing 6 header bytes and 2 payload bytes
[2017-08-26 14:32:42] [frame_header] Header Bytes: 
[0] (6) 88 82 3B 2E C0 0B 

[2017-08-26 14:32:42] [frame_payload] Payload Bytes: 
[0] (2) [8] 38 C1 

[2017-08-26 14:32:42] [error] handle_read_frame error: websocketpp.transport:8 (TLS Short Read)
[2017-08-26 14:32:42] [disconnect] Disconnect close local:[1006,TLS Short Read] remote:[1007]
stopped io service

I'd appreciate any insight.

Aucun commentaire:

Enregistrer un commentaire