JavaPhoenixClient
/
org.phoenixframework
/
Channel
Channel
class
Channel
(topic:
String
, params:
Payload
, socket:
Socket
)
Content copied to clipboard
Represents a Channel bound to a given topic
Types
Constructors
Functions
Properties
Constructors
Channel
Link copied to clipboard
fun
Channel
(topic:
String
, params:
Payload
, socket:
Socket
)
Content copied to clipboard
Types
Event
Link copied to clipboard
enum
Event
:
Enum
<
Channel.Event
>
Content copied to clipboard
Channel specific events
State
Link copied to clipboard
enum
State
:
Enum
<
Channel.State
>
Content copied to clipboard
States of a Channel
Functions
join
Link copied to clipboard
fun
join
(timeout:
Long
= this.timeout):
Push
Content copied to clipboard
leave
Link copied to clipboard
fun
leave
(timeout:
Long
= this.timeout):
Push
Content copied to clipboard
off
Link copied to clipboard
fun
off
(event:
String
, ref:
Int
? = null)
Content copied to clipboard
on
Link copied to clipboard
fun
on
(event:
String
, callback: (
Message
) ->
Unit
):
Int
Content copied to clipboard
fun
on
(event:
Channel.Event
, callback: (
Message
) ->
Unit
):
Int
Content copied to clipboard
onClose
Link copied to clipboard
fun
onClose
(callback: (
Message
) ->
Unit
):
Int
Content copied to clipboard
onError
Link copied to clipboard
fun
onError
(callback: (
Message
) ->
Unit
):
Int
Content copied to clipboard
onMessage
Link copied to clipboard
fun
onMessage
(callback: (
Message
) ->
Message
)
Content copied to clipboard
push
Link copied to clipboard
fun
push
(event:
String
, payload:
Payload
, timeout:
Long
= this.timeout):
Push
Content copied to clipboard
Properties
canPush
Link copied to clipboard
val
canPush
:
Boolean
Content copied to clipboard
isClosed
Link copied to clipboard
val
isClosed
:
Boolean
Content copied to clipboard
isErrored
Link copied to clipboard
val
isErrored
:
Boolean
Content copied to clipboard
isJoined
Link copied to clipboard
val
isJoined
:
Boolean
Content copied to clipboard
isJoining
Link copied to clipboard
val
isJoining
:
Boolean
Content copied to clipboard
isLeaving
Link copied to clipboard
val
isLeaving
:
Boolean
Content copied to clipboard
joinRef
Link copied to clipboard
val
joinRef
:
String
?
Content copied to clipboard
The ref sent during the join message.
params
Link copied to clipboard
var
params
:
Payload
Content copied to clipboard
Params passed in through constructions and provided to the JoinPush
topic
Link copied to clipboard
val
topic
:
String
Content copied to clipboard