     log.warning msg
     res.endjson {err:100,msg:msg}
 
+on_reload_plugin = (req,res,params)->
+  res.endjson {err:1, msg:"method unimplemented"}
+
 handle_request = (req,res,path,params)->
   res.endjson = (dict={})->
     ret_dict =

# @callback group_name, message, res
# need call res.endjson {} to finish request
exports.on_groupmessage = (callback)->
  cb_sendmessage = callback
  switch path
    when '/stdin' then on_stdin(req,res,params)
    when '/send'  then on_sendmsg(req,res,params)
    when '/reload'then on_reload_plugin(req,res,params)


create_server = (port)->
