vibe.d beta banner
get vibe.d
0.10.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct WebRPCPeer

Reference counted type used to access a peer's API.

struct WebRPCPeer(I) ;

This struct defines an alias this to its implementation property in order to provide an interface implementation of I. Any calls on the methods of this implementation will be forwarded to the remote peer.

Note that the WebRPC connection will be closed as soon as the last instance of a connected WebRPCPeer gets destroyed.

Constructors

NameDescription
this (impl)

Fields

NameTypeDescription
m_impl WebRPCPeerImpl!(I,I,"")

Properties

NameTypeDescription
implementation[get] inout(I)Accesses the remote peer's API interface.
peerInformation[get] const(WebRPCPeerInfo)Provides information about the remote peer.
Authors

Sönke Ludwig

Copyright

© 2024 Sönke Ludwig

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.