com.github.dreamhead.moco.parser.model.websocket.PingpongSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-runner Show documentation
Show all versions of moco-runner Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
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