api: can send message, almost can gnerate socket url