Package io.smallrye.graphql.websocket
Interface GraphQLWebSocketSession
-
public interface GraphQLWebSocketSession
This is a simple abstraction over a websocket session to be able to abstract away from the underlying API. The reason is to be able to implement protocol handlers which will work with Vert.x websockets as well as JSR-356 endpoints.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close(short statusCode, String reason)
boolean
isClosed()
void
sendMessage(String message)
-
-
-
Method Detail
-
sendMessage
void sendMessage(String message) throws IOException
- Throws:
IOException
-
close
void close(short statusCode, String reason)
-
isClosed
boolean isClosed()
-
-