public interface BrowserLiveReload
AtmosphereResource
.
For internal use only. May be renamed or removed in a future release.
Modifier and Type | Interface and Description |
---|---|
static class |
BrowserLiveReload.Backend
Live reload enabling technology detected.
|
Modifier and Type | Method and Description |
---|---|
BrowserLiveReload.Backend |
getBackend()
Detects and return enabling live reload backend technology.
|
boolean |
isLiveReload(org.atmosphere.cpr.AtmosphereResource resource)
Returns whether the passed connection is a browser live-reload
connection.
|
void |
onConnect(org.atmosphere.cpr.AtmosphereResource resource)
Sets the web socket connection resource when it's established.
|
void |
onDisconnect(org.atmosphere.cpr.AtmosphereResource resource)
Removes the web socket connection resource, not
null . |
void |
onMessage(org.atmosphere.cpr.AtmosphereResource resource,
String msg)
Called when any message is received through the connection.
|
void |
reload()
Requests reload via the resource provided via
onConnect(AtmosphereResource) call. |
void |
setBackend(BrowserLiveReload.Backend backend)
Sets the live reload backend technology explicitly.
|
BrowserLiveReload.Backend getBackend()
null
if nonevoid setBackend(BrowserLiveReload.Backend backend)
backend
- enabling technology, not null
.void onConnect(org.atmosphere.cpr.AtmosphereResource resource)
resource
- a web socket connection resource, not null
.void onDisconnect(org.atmosphere.cpr.AtmosphereResource resource)
null
.resource
- a web socket connection resourceboolean isLiveReload(org.atmosphere.cpr.AtmosphereResource resource)
resource
- a web socket connection resource, not null
.void reload()
onConnect(AtmosphereResource)
call.void onMessage(org.atmosphere.cpr.AtmosphereResource resource, String msg)
resource
- the atmosphere resource that received the messagemsg
- the received messageCopyright © 2025. All rights reserved.