All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.datafx.websocket.MessageProvider Maven / Gradle / Ivy

There is a newer version: 8.0b5
Show newest version
package org.datafx.websocket;

import java.io.IOException;
import javafx.collections.FXCollections;
import javafx.collections.ObservableList;
import org.datafx.provider.ListDataProvider;

/**
 *
 * @author johan
 */
public class MessageProvider extends ListDataProvider {

    
    private final WebSocketReader reader;
    private ObservableList incomingMessages = FXCollections.observableArrayList();

    public MessageProvider (WebSocketReader reader) {
        super(reader);
        this.reader = reader;
    }

    public void sendMessage (String msg) throws IOException {
        reader.sendMessage(msg);
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy