1
1
-- ----------------------------------------------------------------------------
2
2
-- Ada Web Server --
3
3
-- --
4
- -- Copyright (C) 2012-2016 , AdaCore --
4
+ -- Copyright (C) 2012-2021 , AdaCore --
5
5
-- --
6
6
-- This library is free software; you can redistribute it and/or modify --
7
7
-- it under terms of the GNU General Public License as published by the --
@@ -92,7 +92,7 @@ package body AWS.Net.WebSocket is
92
92
Protocol : AWS.Net.WebSocket.Protocol.State_Class;
93
93
URL : constant AWS.URL.Object := AWS.URL.Parse (URI);
94
94
begin
95
- -- Initially, the connection is initiated with standard http GET.
95
+ -- Initially, the connection is initiated with standard http GET
96
96
97
97
Socket.Connection := new AWS.Client.HTTP_Connection;
98
98
Protocol := new Net.WebSocket.Protocol.RFC6455.State;
@@ -402,7 +402,7 @@ package body AWS.Net.WebSocket is
402
402
function Poll
403
403
(Socket : in out Object'Class;
404
404
Timeout : Duration)
405
- return Boolean
405
+ return Boolean
406
406
is
407
407
procedure Do_Receive
408
408
(Socket : not null access Object'Class;
@@ -423,7 +423,7 @@ package body AWS.Net.WebSocket is
423
423
end Do_Receive ;
424
424
425
425
function Read_Message is new AWS.Net.WebSocket.Read_Message
426
- (Receive => Do_Receive);
426
+ (Receive => Do_Receive);
427
427
428
428
Obj : Object_Class := Socket'Unrestricted_Access;
429
429
Event : AWS.Net.Event_Set;
@@ -465,8 +465,8 @@ package body AWS.Net.WebSocket is
465
465
-- ----------------
466
466
467
467
function Read_Message
468
- (WebSocket : in out Object_Class;
469
- Message : in out Ada.Strings.Unbounded.Unbounded_String)
468
+ (WebSocket : in out Object_Class;
469
+ Message : in out Ada.Strings.Unbounded.Unbounded_String)
470
470
return Boolean
471
471
is
472
472
Data : Stream_Element_Array (1 .. 4_096 );
0 commit comments