class SocketIoMemoryAdapter extends SocketIoAdapter {

    @Override
    public SocketIoSocket[] listClients(String room) throws IllegalArgumentException {
        if (room == null) {
            throw new IllegalArgumentException("room must not be null.");
        }

        if (mRoomSockets.containsKey(room)) {
            return mRoomSockets.get(room).toArray(new SocketIoSocket[0]);
        } else {
            return new SocketIoSocket[0];
        }
    }

    private  SocketIoMemoryAdapter(SocketIoNamespace namespace);

}