Skip to content

Commit feefbd9

Browse files
committed
added more serious warnings about server load
1 parent 45f87e3 commit feefbd9

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

v5-unity/js/opt-shared-sessions.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -407,9 +407,7 @@ Get live help!
407407
<button id="sharedSessionBtn" type="button" class="togetherjsBtn" style="font-size: 9pt;">
408408
Start private chat
409409
</button>
410-
<div style="margin-top: 5px; font-size: 8pt;">
411-
<a href="https://www.youtube.com/watch?v=oDY7ScMPtqI" target="_blank">How do I use this?</a>
412-
</div>
410+
<div style="margin-top: 5px; font-size: 8pt;">(warning: chat service<br/>may crash at any time)</div>
413411
</div>
414412
415413
<div id="sharedSessionDisplayDiv" style="display: none; margin-right: 5px;">
@@ -419,6 +417,9 @@ Get live help!
419417
</div>
420418
`;
421419

420+
// 2019-04-01: eliminated this link and put up '(chat service may crash at any time)' warning
421+
//<a href="https://www.youtube.com/watch?v=oDY7ScMPtqI" target="_blank">How do I use this?</a>
422+
422423
var togetherJsDiv = `
423424
<div id="togetherjsStatus">
424425
<div id="publicHelpQueue"></div>
@@ -894,7 +895,7 @@ Get live help!
894895
$("#moderationPanel").append(`
895896
<button id="stopRequestHelpBtn" type="button" class="togetherjsBtn"
896897
style="margin-bottom: 6pt; font-size: 10pt; font-weight: bold; padding: 4px;">
897-
Click to make this session private so nobody else can join.
898+
Make session private so nobody else can join.
898899
</button><br/>`);
899900
$("#stopRequestHelpBtn").click(this.initStopRequestingPublicHelp.bind(this));
900901
} else {
@@ -1317,7 +1318,14 @@ Get live help!
13171318
// make sure clientId isn't YOU so you don't display info about yourself:
13181319
var myClientId = TogetherJS.clientId();
13191320
if (msg.clientId != myClientId) {
1320-
this.chatbotPostMsg('Someone just joined this session.');
1321+
//this.chatbotPostMsg('Someone just joined this session.');
1322+
1323+
// 2019-04-01: display a more dire warning about server load:
1324+
if (this.meCreatedThisSession()) {
1325+
this.chatbotPostMsg('Someone just joined. The server may get slow or crash if too many users join. Use button at top to *make your session private* so nobody else can join.');
1326+
} else {
1327+
this.chatbotPostMsg('Someone just joined. The server may get slow or crash if too many users join.');
1328+
}
13211329
}
13221330
});
13231331

@@ -1723,7 +1731,7 @@ Get live help!
17231731
$("#requestHelpBtn").hide();
17241732

17251733
// 2019-03-26: display a more prominent warning here:
1726-
this.chatbotPostMsg('This service is NOT being actively maintained, so it may crash at any time. It is available for free with no technical support. Please do not contact the site owner to make any feature requests.');
1734+
this.chatbotPostMsg('This service is NOT being maintained, so it may crash any time and lose your code. It is available for free with no technical support. Do not contact the site owner to make any feature requests.');
17271735
} else {
17281736
alert("ERROR in getting live help. This isn't working at the moment. Please try again later.");
17291737
if (TogetherJS.running) {

0 commit comments

Comments
 (0)