Skip to content

Commit

Permalink
websocket: alias error type
Browse files Browse the repository at this point in the history
  • Loading branch information
Tectu committed Jul 22, 2022
1 parent 06ccd56 commit b133d1e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/malloy/core/websocket/CMakeLists.txt
Expand Up @@ -5,7 +5,8 @@ target_sources(
HEADERS
BASE_DIRS ${MALLOY_CORE_BASE_DIR}
FILES
websocket.hpp
connection.hpp
stream.hpp
types.hpp
websocket.hpp
)
1 change: 1 addition & 0 deletions lib/malloy/core/websocket/connection.hpp
@@ -1,5 +1,6 @@
#pragma once

#include "types.hpp"
#include "../error.hpp"
#include "../http/request.hpp"
#include "../type_traits.hpp"
Expand Down
11 changes: 11 additions & 0 deletions lib/malloy/core/websocket/types.hpp
@@ -0,0 +1,11 @@
#pragma once

#include <boost/beast/websocket/error.hpp>

namespace malloy::websocket
{
/**
* Websocket error codes.
*/
using error = boost::beast::websocket::error;
}

0 comments on commit b133d1e

Please sign in to comment.