Skip navigation links
A B C D F G H I J L M O P R S T U V 

A

addListener(Room.Listener) - Method in class io.colyseus.Room
 
addPatchListener(String, PatchListenerCallback) - Method in class io.colyseus.state_listener.StateContainer
 
apply(byte[], byte[]) - Static method in class io.colyseus.fossil_delta.FossilDelta
 
AvailableRoom() - Constructor for class io.colyseus.Client.AvailableRoom
 

B

BAD_REQUEST - Static variable in class io.colyseus.Protocol
 

C

callback(List<Client.AvailableRoom>) - Method in interface io.colyseus.Client.AvailableRoomsRequestListener
 
callback(PatchObject) - Method in class io.colyseus.state_listener.FallbackPatchListenerCallback
Called when a change happens to the room state
callback(DataChange) - Method in class io.colyseus.state_listener.PatchListenerCallback
Called when a specific change happens to the room state
Client - Class in io.colyseus
 
Client(String) - Constructor for class io.colyseus.Client
 
Client(String, Client.Listener) - Constructor for class io.colyseus.Client
 
Client(String, String) - Constructor for class io.colyseus.Client
 
Client(String, String, Client.Listener) - Constructor for class io.colyseus.Client
 
Client(String, String, LinkedHashMap<String, Object>, LinkedHashMap<String, String>, int, Client.Listener) - Constructor for class io.colyseus.Client
 
Client.AvailableRoom - Class in io.colyseus
 
Client.AvailableRoomsRequestListener - Interface in io.colyseus
 
Client.GetAvailableRoomsCallback - Interface in io.colyseus
 
Client.Listener - Interface in io.colyseus
An interface for listening to client events
clients - Variable in class io.colyseus.Client.AvailableRoom
 
close() - Method in class io.colyseus.Client
Close connection with the server.
connectingRooms - Variable in class io.colyseus.Client
 
Connection - Class in io.colyseus
 

D

DataChange - Class in io.colyseus.state_listener
 
DataChange() - Constructor for class io.colyseus.state_listener.DataChange
 

F

FallbackPatchListenerCallback - Class in io.colyseus.state_listener
 
FallbackPatchListenerCallback() - Constructor for class io.colyseus.state_listener.FallbackPatchListenerCallback
 
FossilDelta - Class in io.colyseus.fossil_delta
 
FossilDelta() - Constructor for class io.colyseus.fossil_delta.FossilDelta
 

G

getAvailableRooms(String, Client.GetAvailableRoomsCallback) - Method in class io.colyseus.Client
List all available rooms to connect with the provided roomName.
getId() - Method in class io.colyseus.Client
 
getName() - Method in class io.colyseus.Room
 
getSessionId() - Method in class io.colyseus.Room
 
getState() - Method in class io.colyseus.Room
 

H

hasJoined() - Method in class io.colyseus.Room
 

I

io.colyseus - package io.colyseus
 
io.colyseus.fossil_delta - package io.colyseus.fossil_delta
 
io.colyseus.state_listener - package io.colyseus.state_listener
 

J

join(String) - Method in class io.colyseus.Client
Joins room
join(String, LinkedHashMap<String, Object>) - Method in class io.colyseus.Client
 
JOIN_ERROR - Static variable in class io.colyseus.Protocol
 
JOIN_ROOM - Static variable in class io.colyseus.Protocol
 

L

leave() - Method in class io.colyseus.Room
Disconnect from the room.
LEAVE_ROOM - Static variable in class io.colyseus.Protocol
 
Listener() - Constructor for class io.colyseus.Room.Listener
 

M

maxClients - Variable in class io.colyseus.Client.AvailableRoom
 
metadata - Variable in class io.colyseus.Client.AvailableRoom
 

O

onCallback(List<Client.AvailableRoom>, String) - Method in interface io.colyseus.Client.GetAvailableRoomsCallback
 
onClose(int, String, boolean) - Method in interface io.colyseus.Client.Listener
This event is triggered when the connection is closed.
onClose(int, String, boolean) - Method in class io.colyseus.Connection
 
onError(Exception) - Method in interface io.colyseus.Client.Listener
This event is triggered when some error occurs in the server.
onError(Exception) - Method in class io.colyseus.Connection
 
onError(Exception) - Method in class io.colyseus.Room.Listener
This event is triggered when some error occurs in the room handler.
onJoin() - Method in class io.colyseus.Room.Listener
This event is triggered when the client successfuly joins the room.
onLeave() - Method in class io.colyseus.Room.Listener
This event is triggered when the client leave the room.
onMessage(Object) - Method in interface io.colyseus.Client.Listener
This event is triggered when an unhandled message comes to client from server
onMessage(String) - Method in class io.colyseus.Connection
 
onMessage(ByteBuffer) - Method in class io.colyseus.Connection
 
onMessage(Object) - Method in class io.colyseus.Room.Listener
This event is triggered when the server sends a message directly to the client.
onOpen(String) - Method in interface io.colyseus.Client.Listener
This event is triggered when the connection is accepted by the server.
onOpen(ServerHandshake) - Method in class io.colyseus.Connection
 
onStateChange(LinkedHashMap<String, Object>) - Method in class io.colyseus.Room.Listener
This event is triggered when the server updates its state.
operation - Variable in class io.colyseus.state_listener.DataChange
 
operation - Variable in class io.colyseus.state_listener.PatchObject
 

P

PatchListenerCallback - Class in io.colyseus.state_listener
 
PatchListenerCallback() - Constructor for class io.colyseus.state_listener.PatchListenerCallback
 
PatchObject - Class in io.colyseus.state_listener
 
PatchObject(String, List<String>, Object) - Constructor for class io.colyseus.state_listener.PatchObject
 
path - Variable in class io.colyseus.state_listener.DataChange
 
path - Variable in class io.colyseus.state_listener.PatchObject
 
Protocol - Class in io.colyseus
 
Protocol() - Constructor for class io.colyseus.Protocol
 

R

registerPlaceholder(String, Pattern) - Method in class io.colyseus.state_listener.StateContainer
 
rejoin(String, String) - Method in class io.colyseus.Client
Reconnects the client into a room he was previously connected with.
removeAllListeners() - Method in class io.colyseus.Room
Remove all event and data listeners.
removeAllListeners() - Method in class io.colyseus.state_listener.StateContainer
 
removeListener(Room.Listener) - Method in class io.colyseus.Room
 
removePatchListener(PatchListener) - Method in class io.colyseus.state_listener.StateContainer
 
Room - Class in io.colyseus
 
Room.Listener - Class in io.colyseus
 
ROOM_DATA - Static variable in class io.colyseus.Protocol
 
ROOM_LIST - Static variable in class io.colyseus.Protocol
 
ROOM_STATE - Static variable in class io.colyseus.Protocol
 
ROOM_STATE_PATCH - Static variable in class io.colyseus.Protocol
 
roomId - Variable in class io.colyseus.Client.AvailableRoom
 
rooms - Variable in class io.colyseus.Client
 

S

send(Object) - Method in class io.colyseus.Room
Send message to the room handler.
set(LinkedHashMap<String, Object>) - Method in class io.colyseus.state_listener.StateContainer
 
setDefaultPatchListener(FallbackPatchListenerCallback) - Method in class io.colyseus.state_listener.StateContainer
 
setName(String) - Method in class io.colyseus.Room
 
setOptions(LinkedHashMap<String, Object>) - Method in class io.colyseus.Room
 
setSessionId(String) - Method in class io.colyseus.Room
 
state - Variable in class io.colyseus.state_listener.StateContainer
The current room's state.
StateContainer - Class in io.colyseus.state_listener
 
StateContainer(LinkedHashMap<String, Object>) - Constructor for class io.colyseus.state_listener.StateContainer
 

T

toString() - Method in class io.colyseus.Client.AvailableRoom
 
toString() - Method in class io.colyseus.state_listener.DataChange
 
toString() - Method in class io.colyseus.state_listener.PatchObject
 

U

USER_ID - Static variable in class io.colyseus.Protocol
 

V

value - Variable in class io.colyseus.state_listener.DataChange
 
value - Variable in class io.colyseus.state_listener.PatchObject
 
A B C D F G H I J L M O P R S T U V 
Skip navigation links