mutable
A Database System for Research and Fast Prototyping
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes
m::wasm::detail::WebSocketChannel Struct Reference

#include <V8Engine.hpp>

Inheritance diagram for m::wasm::detail::WebSocketChannel:
[legend]
Collaboration diagram for m::wasm::detail::WebSocketChannel:
[legend]

Public Member Functions

 WebSocketChannel (v8::Isolate *isolate, WebSocketServer::Connection &conn)
 
WebSocketServer::Connectionconnection () const
 

Private Member Functions

void sendResponse (int, std::unique_ptr< v8_inspector::StringBuffer > message) override
 
void sendNotification (std::unique_ptr< v8_inspector::StringBuffer > message) override
 
void flushProtocolNotifications () override
 

Private Attributes

v8::Isolate * isolate_
 
WebSocketServer::Connectionconn_
 

Detailed Description

Definition at line 15 of file V8Engine.hpp.

Constructor & Destructor Documentation

◆ WebSocketChannel()

m::wasm::detail::WebSocketChannel::WebSocketChannel ( v8::Isolate *  isolate,
WebSocketServer::Connection conn 
)
inline

Definition at line 22 of file V8Engine.hpp.

Member Function Documentation

◆ connection()

WebSocketServer::Connection & m::wasm::detail::WebSocketChannel::connection ( ) const
inline

Definition at line 26 of file V8Engine.hpp.

References conn_.

◆ flushProtocolNotifications()

void m::wasm::detail::WebSocketChannel::flushProtocolNotifications ( )
inlineoverrideprivate

Definition at line 32 of file V8Engine.hpp.

◆ sendNotification()

void WebSocketChannel::sendNotification ( std::unique_ptr< v8_inspector::StringBuffer >  message)
overrideprivate

Definition at line 147 of file V8Engine.cpp.

References conn_, isolate_, and m::WebSocketServer::Connection::send().

◆ sendResponse()

void WebSocketChannel::sendResponse ( int  ,
std::unique_ptr< v8_inspector::StringBuffer >  message 
)
overrideprivate

Definition at line 140 of file V8Engine.cpp.

References conn_, isolate_, and m::WebSocketServer::Connection::send().

Field Documentation

◆ conn_

WebSocketServer::Connection& m::wasm::detail::WebSocketChannel::conn_
private

Definition at line 19 of file V8Engine.hpp.

Referenced by connection(), sendNotification(), and sendResponse().

◆ isolate_

v8::Isolate* m::wasm::detail::WebSocketChannel::isolate_
private

Definition at line 18 of file V8Engine.hpp.

Referenced by sendNotification(), and sendResponse().


The documentation for this struct was generated from the following files: