Skip to content

Commit

Permalink
Merge pull request #6 from yenshirak/helper-name-fix
Browse files Browse the repository at this point in the history
Fix helper name
  • Loading branch information
julienbourdeau authored Jul 9, 2024
2 parents 30f59df + 1689759 commit 2469512
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/_docs/80-polling-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ slug: "polling-mode"
toc_section: Misc
title: Using HTTP polling
subtitle: If you cannot use websocket, you can use http polling, but it's not as nice.
seo_title:
seo_description:
seo_title:
seo_description:
---

If you cannot use websocket via ActionCable, the debugbar has a fallback mode using HTTP polling.
If you cannot use websocket via ActionCable, the debugbar has a fallback mode using HTTP polling.
It's not as nice as the websocket, but it works.

If ActionCable isn't found, the debugbar will automatically switch to polling mode (only if using the ERB helper).
Expand All @@ -19,15 +19,15 @@ It's also possible to pause and resume polling to avoid all those calls in the b
With the ERB helper

```erb
<%= debugbar_javascript mode: :poll %>
<%= debugbar_body mode: :poll %>
```

You can configure the interval and the URL (if you don't use localhost:3000).

```erb
<%= debugbar_javascript mode: :poll, poll: {
<%= debugbar_body mode: :poll, poll: {
url: "http://custom.test:3030",
interval: 1000
interval: 1000
}
%>
```
Expand Down

0 comments on commit 2469512

Please sign in to comment.