com.github.dreamhead.moco.parser.model.websocket.WebsocketSession 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.Moco;
import com.github.dreamhead.moco.WebSocketServer;
import com.github.dreamhead.moco.parser.model.TextContainer;
@JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY)
public class WebsocketSession {
private TextContainer request;
private WebsocketResponseSetting response;
public final void bindSession(final WebSocketServer webSocketServer) {
webSocketServer.request(Moco.by(request.asResource()))
.response(response.asResponseHandler());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy