mirror of
https://github.com/ninenines/cowboy.git
synced 2025-07-16 05:00:24 +00:00
Add cowboy:accept_ack/1 for a cleaner handling of the shoot message
This commit is contained in:
parent
874cdd3bda
commit
e550ba7cd3
5 changed files with 19 additions and 9 deletions
|
@ -24,9 +24,9 @@
|
|||
%% starting the listener. The <em>start_link/4</em> function must follow
|
||||
%% the supervisor start function specification.
|
||||
%%
|
||||
%% After initializing your protocol, it is recommended to wait to
|
||||
%% receive a message containing the atom 'shoot', as it will ensure
|
||||
%% Cowboy has been able to fully initialize the socket.
|
||||
%% After initializing your protocol, it is recommended to call the
|
||||
%% function cowboy:accept_ack/1 with the ListenerPid as argument,
|
||||
%% as it will ensure Cowboy has been able to fully initialize the socket.
|
||||
%% Anything you do past this point is up to you!
|
||||
%%
|
||||
%% If you need to change some socket options, like enabling raw mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue