aboutsummaryrefslogtreecommitdiffstats
path: root/pages/develop/api/efl/net/dialer/websocket/event/closed_reason.txt
blob: 5ebae0caf3163b34c601e547c7bfa0ebc2857bda (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
~~Title: Efl.Net.Dialer.Websocket: closed,reason~~
===== Signature =====

<code>
closed,reason: Efl.Net.Dialer.Websocket.Closed_Reason;
</code>

===== C information =====

<code c>
EFL_NET_DIALER_WEBSOCKET_EVENT_CLOSED_REASON(Efl_Net_Dialer_Websocket_Closed_Reason)
</code>

===== C usage =====

<code c>
static void
on_efl_net_dialer_websocket_event_closed_reason(void *data, const Efl_Event *event)
{
    Efl_Net_Dialer_Websocket_Closed_Reason info = event->info;
    Eo *obj = event->object;
    Data *d = data;

    /* event hander code */
}

static void
setup_event_handler(Eo *obj, Data *d)
{
    efl_event_callback_add(obj, EFL_NET_DIALER_WEBSOCKET_EVENT_CLOSED_REASON, on_efl_net_dialer_websocket_event_closed_reason, d);
}

</code>

===== Description =====

%%Received a request to close the connection. It may be a reply/confirmation from a local request, see %%[[:develop:api:efl:net:dialer:websocket:method:close_request|Efl.Net.Dialer.Websocket.close_request]]%%, or some server-generated reason. After this point, no more messages are allowed to be sent and no more will be received. %%[[:develop:api:efl:io:closer:method:close|Efl.Io.Closer.close]]%% will be called.%%

//Since 1.19//
{{page>:develop:api-include:efl:net:dialer:websocket:event:closed_reason:description&nouser&nolink&nodate}}