Plotly.cpp 0.1.0
A C++ plotting library for expressive, interactive, real-time & streaming data visualization
Loading...
Searching...
No Matches
json_rpc.hpp File Reference

JSON-RPC 2.0 WebSocket server implementation. More...

#include "websockets_endpoint.hpp"
#include <nlohmann/json.hpp>
#include <cstdint>
#include <functional>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
#include <unordered_set>
#include <utility>
Include dependency graph for json_rpc.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  plotly::detail::JsonRpcError
 Structure representing a JSON-RPC error object. More...
struct  plotly::detail::JsonRpcResponse
 Structure representing a JSON-RPC response object. More...
class  plotly::detail::JsonRpc
 JSON-RPC 2.0 server implementation over WebSocket. More...

Namespaces

namespace  plotly
 C++ bindings for Plotly.
namespace  plotly::detail

Enumerations

enum class  plotly::detail::JsonRpcErrorCode : std::int16_t {
  plotly::detail::PARSE_ERROR = -32700 , plotly::detail::INVALID_REQUEST = -32600 , plotly::detail::METHOD_NOT_FOUND = -32601 , plotly::detail::INVALID_PARAMS = -32602 ,
  plotly::detail::INTERNAL_ERROR = -32603 , plotly::detail::SERVER_ERROR = -32000
}
 Enumeration of standard JSON-RPC 2.0 error codes. More...

Detailed Description

JSON-RPC 2.0 WebSocket server implementation.