summaryrefslogtreecommitdiff
path: root/matlab/lib/+Ice/WSConnectionInfo.m
blob: d6a320763b0c7367985c893c6ca0cdd7b311fddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
classdef WSConnectionInfo < Ice.ConnectionInfo
    % WSConnectionInfo   Summary of WSConnectionInfo
    %
    % Provides access to the connection details of a WebSocket connection.
    %
    % WSConnectionInfo Properties:
    %   headers - The headers from the HTTP upgrade request.

    % Copyright (c) ZeroC, Inc. All rights reserved.

    methods
        function obj = WSConnectionInfo(underlying, incoming, adapterName, connectionId, headers)
            if nargin == 0
                underlying = [];
                incoming = false;
                adapterName = '';
                connectionId = '';
                headers = containers.Map('KeyType', 'char', 'ValueType', 'char');
            end
            obj = obj@Ice.ConnectionInfo(underlying, incoming, adapterName, connectionId);
            obj.headers = headers;
        end
    end
    properties(SetAccess=private)
        % headers - The headers from the HTTP upgrade request.
        headers
    end
end