SignalR-Client-Cpp | C++ client for ASP.NET SignalR | Websocket library
kandi X-RAY | SignalR-Client-Cpp Summary
kandi X-RAY | SignalR-Client-Cpp Summary
No further work is being done on the ASP.NET SignalR C client. There is new work for the ASP.NET Core SignalR C client located at ASP.NET SignalR C++ Client.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of SignalR-Client-Cpp
SignalR-Client-Cpp Key Features
SignalR-Client-Cpp Examples and Code Snippets
Community Discussions
Trending Discussions on SignalR-Client-Cpp
QUESTION
I want to build a real-time data API using SignalR on the server. I will be building a web client that will connect with the API the "usual way".
However, I would like 3rd parties to also be able to connect to this API. These clients may be web clients or other platforms such as Windows, Mac, iOS, etc. Ideally, they'd just be able to connect via plain websockets and be totally agnostic of whether SignalR is in use on the server or not.
It seems that there are a lot of libraries out there for clients on different platforms (Swift, Objective-C, Java/Android, c++, etc) that would allow them to connect to my API. Another approach (that some of these libraries use) is to embed a hidden web view. Either way it's quite a bit to impose on the 3rd parties. It needs to be simpler.
Is there a way to write a web application (for example) that only uses standard websocket calls and talks directly to my SignalR server without needing to include any SignalR specific scripts as dependencies? Can a non-web client do the same (i.e. make standard websocket calls, with no embedded web view)?
Basically, I would like the effort 3rd parties need to go through to be no greater than if I decide to make a vanilla websocket API and avoid signalR entirely.
...ANSWER
Answered 2017-Feb-20 at 12:34QUESTION
I want to use SignalR in a Windows project that is compiled with MinGW (MSYS2). As far as I know I cannot link against a library (dll) compiled with another compiler (i.e. VC++).
Hence, I need to compile SignalR with MinGW. Here the repository:
https://github.com/aspnet/SignalR-Client-Cpp
The project is based on CMake rather than a standard Makefile. This is what I did:
- downloaded CMake: https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip
- extracted to a folder (i.e. C:/dev)
- exported the cmake/bin folder to the PATH var (in /etc/profile)
- checked if it works :) with cmake --version
- cloned the Cpp Rest SDK (https://github.com/Microsoft/cpprestsdk.git)
Trying to compile the Cpp Rest SDK as described here:
https://github.com/Microsoft/cpprestsdk/wiki/How-to-build-for-Linux
leads to this output:
$ cmake .. -DCMAKE_BUILD_TYPE=Release -- Building for: Visual Studio 15 2017 -- The C compiler identification is MSVC 19.10.25019.0 -- The CXX compiler identification is MSVC 19.10.25019.0 -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.10.25017/bin/HostX86/x86/cl.exe -- works
I'm afraid it's still using the MSVC compiler so the output binaries won't be compatible with my application.
How should I compile those libraries?
...ANSWER
Answered 2017-Apr-14 at 15:02CMake does not build anything itself. Rather it generates the configuration files for make, MSBuild, Ninja, etc. Each platform has its default generator. For Windows, that is Visual Studio/NMake.
You can select a generator manually with CMake’s -G
option. Some generator names contain spaces. Make sure to put quotes around those.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install SignalR-Client-Cpp
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page