Skip to main content
Filter by
Sorted by
Tagged with
2 votes
1 answer
74 views

I have a Websocket class that connects asynchronously using Boost.Asio and Boost.Beast. The following code was working fine with Boost 1.78, but after updating to the latest Boost version, I now get a ...
Rutvik Parekh's user avatar
3 votes
1 answer
99 views

I have a websocket server where I call websocket::stream::async_accept to perform a handshake with the client. I also set a decorator to modify the headers like this conn->get_websocket_stream()....
Joe J's user avatar
  • 1,349
1 vote
1 answer
69 views

I'm trying to bind a WebSocket connection to a specific network interface using Boost.Beast, but the socket keeps using the default interface instead of the specified one. I have a WebSocket client ...
nobody's user avatar
  • 13
1 vote
1 answer
69 views

For some reason when exposing the below to python using Boost Python, the unique pointer constructor (the obj constructor) fails. This used to work for me before, not sure why it stopped. #pragma once ...
SpeakX's user avatar
  • 427
0 votes
0 answers
99 views

I have been working to understand a series of unexplained memory allocations that don’t make sense in the boost beast websocket framework. I have taken the example of the async server implementation ...
user3826668's user avatar
3 votes
1 answer
100 views

I am using a timer and an async_read, so whenever the timer runs out it cancels the async_read by doing ws_.next_layer().cancel() so that i can continue with my next operation. but when I catch the ...
Manish I's user avatar
0 votes
1 answer
143 views

I have a Boost Beast asio based websocket server, which (in abbreviated form) starts like this ssl_context_.set_options( boost::asio::ssl::context::default_workarounds | boost::asio::ssl::...
Paul Grinberg's user avatar
0 votes
1 answer
178 views

I have a boost::beast HTTP server that streams data to a connected client. I'm happy to ignore anything they send to me, so I constantly call async_write without calling async_receive. But I think ...
Stewart's user avatar
  • 5,210
1 vote
1 answer
1k views

Maybe somebody can provide simple example(or references) on how to setup client and server using websocket from boost/beast library? I need an example on how to handle input message on server and ...
Max's user avatar
  • 79
5 votes
0 answers
2k views

I'm porting a python application over to C++. As I'm not incredibly familiar with C++ I was wondering if there are any benchmark test result out there for websocket latency between the two libraries ...
Zercon's user avatar
  • 155
1 vote
1 answer
123 views

When the coroutine calls boost::asio::write, the coroutine will block waiting for the buffer to become writable or the coroutine will be scheduled out because the tcp buffer is full?
qing zhao's user avatar
1 vote
0 answers
157 views

I am trying to create a basic vanilla websocket client using c++ and the boost/beast library. Following the examples, I can create an unsecured ws connection. But when I try to incorporate ssl into ...
M Ivan's user avatar
  • 11
1 vote
0 answers
943 views

I'm messing around with the beast async websocket client and want it to re-connect in the same session instance if it becomes disconnected. The issue is that everything works until I attempt the ...
darnell_a's user avatar
  • 137
1 vote
1 answer
178 views

I am trying to run a Kraken websocket client for two symbols, AUD/USD and AUD/JPY, in separate IOContexts in separate threads, using C++ and the Boost.Beast library. I have 6 cores available and want ...
noobie's user avatar
  • 25
2 votes
1 answer
2k views

tl;dr: Is there a way to close a WebSocket that's currently doing (sync) read() operation, if server sends nothing for some time? I wanted to make a simple WebSocket client with Boost::beast. When I ...
Some Dinosaur's user avatar
1 vote
1 answer
396 views

My goal is to register to a websocket service to get real-time company quotations. So I based my code on the following example, by mostly calling (again) async_read, once we receive a quotation to ...
moochy's user avatar
  • 11
2 votes
1 answer
213 views

RE: https://www.boost.org/doc/libs/1_80_0/libs/beast/example/websocket/client/coro-ssl/websocket_client_coro_ssl.cpp I tried following the above example and ran into a compilation error; namely, code ...
bear's user avatar
  • 21
0 votes
0 answers
443 views

Reference: https://www.boost.org/doc/libs/1_80_0/libs/beast/example/websocket/client/async-ssl/websocket_client_async_ssl.cpp My websocket client application was built based on the above example. Now ...
q0987's user avatar
  • 36.2k
2 votes
0 answers
603 views

I am using boost::beast as well as boost::asio to implement a websocket client with SSL support. My WebsocketClient class has the following members: boost::asio::io_context& io_context; ...
singular's user avatar
4 votes
2 answers
1k views

C++20 introduced language support for coroutines. My understanding is that that this consists of syntactic sugar, such as co_await and co_return, to which semantic meaning is attached via special &...
seertaak's user avatar
  • 1,147
1 vote
1 answer
460 views

https://www.boost.org/doc/libs/1_72_0/libs/beast/example/http/client/async-ssl/http_client_async_ssl.cpp std::unique_ptr<tcp::resolver> resolver_{nullptr}; std::unique_ptr<beast::ssl_stream&...
q0987's user avatar
  • 36.2k
1 vote
1 answer
98 views

Reference: boost_1_78_0/doc/html/boost_asio/reference/ip__basic_resolver/async_resolve/overload1.html template< typename ResolveHandler = DEFAULT> DEDUCED async_resolve( const query &...
q0987's user avatar
  • 36.2k
3 votes
1 answer
1k views

Reference: websocket_client_async_ssl.cpp strands Question 1> Here is my understanding: Given a few async operations bound with the same strand, the strand will guarantee that all associated async ...
q0987's user avatar
  • 36.2k
1 vote
1 answer
1k views

Reference: websocket_client_sync_ssl.cpp // Read a message into our buffer ws.read(buffer); // Close the WebSocket connection ws.close(websocket::close_code::normal); Based on my test, the ws....
q0987's user avatar
  • 36.2k
1 vote
1 answer
2k views

Reference: websocket_client_sync.cpp Table 1.30. WebSocket HTTP Upgrade Request GET / HTTP/1.1 Host: www.example.com Upgrade: websocket Connection: upgrade Sec-WebSocket-Key: 2pGeTR0DsE4dfZs2pH+8MA== ...
q0987's user avatar
  • 36.2k
0 votes
1 answer
1k views

I am using boost beast for making websocket connections, a process of mine may have a large number of streams/connections and while terminating the process I am calling blocking close of each ...
DEEPANSH NAGARIA's user avatar
3 votes
1 answer
598 views

How do i check client information as user-agent from boost async web socket server ? I have checked: https://www.boost.org/doc/libs/develop/libs/beast/example/websocket/server/async/...
SASA's user avatar
  • 41
2 votes
0 answers
367 views

While I am trying the code from: advanced_server example I am getting following error here: read: The WebSocket control frame was fragmented The client is sending ping control message using Poco ...
monotosh's user avatar
0 votes
2 answers
5k views

Boost beast TLS client (largely based on this) which is not connecting to Microsoft Azure azurewebsites hosted web app. Viewing the Wireshark output, it appears that the server is sending RST after ...
Alex's user avatar
  • 681
1 vote
2 answers
1k views

I am trying to write a https flex server, that can upgrade to websocket based on upgrade request. https class does the ssl handshake on std::shared_ptr<boost::beast::ssl_stream<boost::beast::...
mhs's user avatar
  • 13
5 votes
1 answer
6k views

I'm connecting to a websocket using the boost/beast libraries and writing the data into a beast::flat_buffer. My issue is that I'm having trouble getting the data from buffer. I have a thread-safe ...
Calvin K's user avatar
  • 124
0 votes
1 answer
2k views

I use Boost::Beast and i got somme exception message for exemple : resolve: No such host is known. I want in my code to print i message more significant that can a simple user get a idea what this ...
ioula's user avatar
  • 11
2 votes
1 answer
564 views

I am using an example from boost beast documentation for async websocket client. The to send some command to subscribe and then to listen feed until it is terminated manually (preferably with other ...
user2426998's user avatar