Interface MessageChannel
- All Known Implementing Classes:
- WebSocketChannel
public interface MessageChannel
Interface representing the channel used by the backend to send messages down to the client (the websocket).
- 
Method SummaryModifier and TypeMethodDescriptionvoidclose()Close the message channelReturns the view group identifier, which is used to differentiate between different instances of the same project .Returns the name of the project, which is unique.booleanisClosed()booleanisOpen()voidSends a message to be handled by the appropriate handler (as identified by the protocol)
- 
Method Details- 
getProjectString getProject()Returns the name of the project, which is unique.
- 
getPageIdString getPageId()Returns the view group identifier, which is used to differentiate between different instances of the same project . For a live project running in a browser, this might be the unique browser tab identifier. For a designer, this may be a specific workspace tab.
- 
isOpenboolean isOpen()- Returns:
- false if the message channel not connected
 
- 
isClosedboolean isClosed()- Returns:
- true iff this channel was closed by the local side of this connection (in order words: from a call
 to close()
 
- 
sendSends a message to be handled by the appropriate handler (as identified by the protocol)- Throws:
- IOException
 
- 
closevoid close()Close the message channel
 
-