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

com.github.dreamhead.moco.parser.model.websocket.PingpongSession Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
package com.github.dreamhead.moco.parser.model.websocket;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.github.dreamhead.moco.WebSocketServer;
import com.github.dreamhead.moco.parser.model.TextContainer;

@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class PingpongSession {
    private TextContainer ping;
    private TextContainer pong;

    public final void bindPingPong(final WebSocketServer webSocketServer) {
        webSocketServer.ping(ping.asResource()).pong(pong.asResource());
    }
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy