io.higgs.ws.demo.Api Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of websocket Show documentation
Show all versions of websocket Show documentation
Higgs' WebSocket server and client implementation
package io.higgs.ws.demo;
import io.higgs.core.method;
import io.higgs.ws.JsonRequest;
import io.higgs.ws.protocol.WebSocketConfiguration;
import io.netty.channel.Channel;
import io.netty.channel.ChannelHandlerContext;
/**
* @author Courtney Robinson
*/
@method("/ws")
public class Api {
@method("test/{string:[a-z0-9]+}/{num:[0-9]+}")
public Object test(
JsonRequest request,
ChannelHandlerContext ctx,
Channel channel,
WebSocketConfiguration configuration,
Pojo pojo
) {
return request;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy