Compare commits
No commits in common. "d9caee420ae8f884a7586127fc95538281778969" and "fdd06978d87d0a0317d72cc1b199277bd8df94f8" have entirely different histories.
d9caee420a
...
fdd06978d8
@ -63,7 +63,9 @@ final class DiceResource(@Context val sse: Sse) {
|
|||||||
@Path("/stream")
|
@Path("/stream")
|
||||||
@Produces(MediaType.SERVER_SENT_EVENTS)
|
@Produces(MediaType.SERVER_SENT_EVENTS)
|
||||||
fun stream(@PathParam("id") id: String, @Context sseEventSink: SseEventSink) {
|
fun stream(@PathParam("id") id: String, @Context sseEventSink: SseEventSink) {
|
||||||
sseBroadcasters[id] = sse.newBroadcaster()
|
if (!sseBroadcasters.containsKey(id)) {
|
||||||
|
sseBroadcasters[id] = sse.newBroadcaster()
|
||||||
|
}
|
||||||
sseBroadcasters[id]?.register(sseEventSink)
|
sseBroadcasters[id]?.register(sseEventSink)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,6 +90,6 @@ final class DiceResource(@Context val sse: Sse) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@RegisterForReflection
|
@RegisterForReflection
|
||||||
data class Result(val name: String, val user: String, val themeColor: String)
|
data class Result(val name: String, val user: String, val themeColor: String) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div popover id="overlay-hint" class="tooltip">
|
<div popover id="overlay-hint" class="tooltip">
|
||||||
<p style="color: red; font-weight: bold">Only the last loaded instance of that overlay rolls the dice!</p>
|
<p style="color: red; font-weight: bold">Only open Overlay once, unless you want multiple results</p>
|
||||||
<p>Query Params you can Change:</p>
|
<p>Query Params you can Change:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><strong>scale</strong> changes the size of the dice (any value over 1)</li>
|
<li><strong>scale</strong> changes the size of the dice (any value over 1)</li>
|
||||||
@ -323,7 +323,7 @@
|
|||||||
|
|
||||||
<li>Open your Dice-Overlay either in a new Tab or as a browser source in OBS</li>
|
<li>Open your Dice-Overlay either in a new Tab or as a browser source in OBS</li>
|
||||||
<ul>
|
<ul>
|
||||||
<li style="color: red; font-weight: bold">Only the last loaded instance of that overlay rolls the dice!</li>
|
<li style="color: red; font-weight: bold">Only open your Dice-Overlay once!</li>
|
||||||
<li>You can configure your Overlay with query parameters (more information at the info element next to the link)</li>
|
<li>You can configure your Overlay with query parameters (more information at the info element next to the link)</li>
|
||||||
</ul>
|
</ul>
|
||||||
<li>Configure your dice</li>
|
<li>Configure your dice</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user