Skip to content

Commit

Permalink
Use proxy for realtime counter
Browse files Browse the repository at this point in the history
  • Loading branch information
timolins committed Jun 2, 2021
1 parent 25a0703 commit afe3405
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/components/sections/splitbee-counter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const useSplitbeeCount = <T extends string>(
const socket = React.useRef(null);
React.useEffect(() => {
if (typeof window !== undefined) {
socket.current = new WebSocket('wss://api.splitbee.io/realtime');
socket.current = new WebSocket('wss://realtime.react-hot-toast.com/');
socket.current.onopen = (e) => {
socket.current.send(
JSON.stringify({
Expand Down

0 comments on commit afe3405

Please sign in to comment.