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

com.github.dreamhead.moco.parser.model.websocket.WebsocketSession 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.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