Skip to content

Commit

Permalink
use centrifuge-js v4 in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jul 11, 2023
1 parent 36ba012 commit e2cd816
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ Also create file `index.html` near `main.go` with content:
<html lang="en">
<head>
<meta charset="utf-8">
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<title>Centrifuge chat example</title>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion _examples/chat_json/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/chat_oauth2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>Centrifuge + OAuth2</title>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
</head>
<body>
<div>
Expand Down
2 changes: 1 addition & 1 deletion _examples/chat_protobuf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</style>
<script src="https://unpkg.com/[email protected]/lib/encoding-indexes.js"></script>
<script src="https://unpkg.com/[email protected]/lib/encoding.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.protobuf.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.protobuf.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/concurrency/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style type="text/css">
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_broker_nats/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_engine_tarantool/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_token/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style type="text/css">
input[type="text"] { width: 300px; }
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
window.addEventListener('load', function() {
const container = document.getElementById('messages');
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_ws_gobwas/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/custom_ws_nhooyr/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/emulation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/emulation_protobuf/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</style>
<script src="https://unpkg.com/[email protected]/lib/encoding-indexes.js"></script>
<script src="https://unpkg.com/[email protected]/lib/encoding.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.protobuf.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.protobuf.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/experimental/http3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/gin_auth/chat.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] {width: 300px;}
.muted {color: #CCCCCC;font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/history_pagination/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/jwt_token/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/redis_broker_presence/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
input[type="text"] { width: 300px; }
.muted {color: #CCCCCC; font-size: 10px;}
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
// helper functions to work with escaping html.
const tagsToReplace = {'&': '&amp;', '<': '&lt;', '>': '&gt;'};
Expand Down
2 changes: 1 addition & 1 deletion _examples/single_connection/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
window.addEventListener('load', function() {
const container = document.getElementById('messages');
Expand Down
2 changes: 1 addition & 1 deletion _examples/survey/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title></title>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
window.addEventListener('load', function() {
const container = document.getElementById('messages');
Expand Down
2 changes: 1 addition & 1 deletion _examples/user_subscribe_unsubscribe/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<style type="text/css">
input[type="text"] { width: 300px; }
</style>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript">
const channel = "blink182";

Expand Down
2 changes: 1 addition & 1 deletion _examples/worms/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="stylesheet" type="text/css" href="main.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.9.21/paper-full.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@3.1.0/dist/centrifuge.js"></script>
<script type="text/javascript" src="https://unpkg.com/centrifuge@^4/dist/centrifuge.js"></script>
<script type="text/javascript" src="main.js"></script>
</head>
<body>
Expand Down

0 comments on commit e2cd816

Please sign in to comment.