https listener

This commit is contained in:
Feng 2015-07-08 22:02:00 +08:00
parent c85617c080
commit 630dd4f089
1 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,11 @@ open_listener({mqtts, Port, Options}) ->
%% open http port %% open http port
open_listener({http, Port, Options}) -> open_listener({http, Port, Options}) ->
MFArgs = {emqttd_http, handle_request, []},
mochiweb:start_http(Port, Options, MFArgs);
%% open https port
open_listener({https, Port, Options}) ->
MFArgs = {emqttd_http, handle_request, []}, MFArgs = {emqttd_http, handle_request, []},
mochiweb:start_http(Port, Options, MFArgs). mochiweb:start_http(Port, Options, MFArgs).