easywsclient icon indicating copy to clipboard operation
easywsclient copied to clipboard

A short and sweet WebSocket client for C++

Results 40 easywsclient issues
Sort by recently updated
recently updated
newest added

Hi - Thanks for the work on this library. It's certainly the easiest-to-consume C++ WS library I've come across. One thing that I don't see is a way to determine...

I'm not able to get work my program with TinyThread. In the main() I start the connection and a thread makes the loop with poll and dispatch. Any idea? Regards

When interface is localhost, "ws://localhost/foo" for instance function connect returns SOCKET_ERROR on first try. On second try everything is fine. "if (connect(sockfd, p->ai_addr, p->ai_addrlen) != SOCKET_ERROR)..." And this happens only...

This will allow users to set headers for the initial connection by passing a key value pair. Empowers applications to send custom headers such as authentication tokens/sessions to server.

I have added the files and are included, but: ![image](https://github.com/dhbaird/easywsclient/assets/132352647/f6ea1e88-6ce2-4d5f-8146-17fc9704a2bd) Like example: ![image](https://github.com/dhbaird/easywsclient/assets/132352647/c44e154e-973d-41d0-a452-8dad68178a86) Sorry, im noob.

# from_url() Upon a valid socket descriptor and a failure to connect, sockfd was never closed. This was descovered in an embedded Linux system where eventually the max number of...

There is a memory leak in sending audio data continuously on a single connection(int ret = ::send(sockfd, (char*)&txbuf[0], txbuf.size(), 0);),how solve this problem?

return error,should return "INVALID_SOCKET" ... socket_t hostname_connect(const std::string& hostname, int port) { struct addrinfo hints; struct addrinfo *result; struct addrinfo *p; int ret; socket_t sockfd = INVALID_SOCKET; char sport[16]; memset(&hints,...

in msys2, collide here `typedef __int8 int8_t;`

hi, In easywsclient.cpp I say several header with std::vector(line:394 and line:450), they need be done clear() or swap() at last? My c++ env is c++11.