ws_upgrade(ConnPid, Path) -> ws_upgrade(ConnPid, Path, []) ws_upgrade(ConnPid, Path, Headers) -> StreamRef ws_upgrade(ConnPid, Path, Headers, WsOpts) -> StreamRef ConnPid :: pid() Path :: iodata() Headers :: gun:req_headers() WsOpts :: gun:ws_opts() StreamRef :: gun:stream_ref()