eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'WebSocketStream::Message':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: Message (private in WebSocketStream

This class is only visible from within WebSocketStream.

Inheritance:

   Object
   |
   +--WebSocketStream::Message

Package:
stx:goodies/communication
Category:
Net-Communication-Websocket
Owner:
WebSocketStream

Description:


this reprensents the 'human readable' tranfer data, for e.g.:
'Hello World'

a message is the collected and converted data from n Frames,
this means a Message is build up from n frames, for e.g.:

Frame 1 data ~= protocol data, finish 0, 'Hello '
Frame 2 data ~= protocol data, finish 1, 'World'

the message is collected from all converted frame data until the 'finish' frame
the contents is returned as string or byte array or if it is a lot content as filename including the content


Class protocol:

instance creation
o  new
(comment from inherited method)
return an instance of myself without indexed variables


Instance protocol:

accessing
o  isCompressed

o  isCompressed: aBoolean

o  opCode: anInteger
Modified (format): / 03-11-2022 / 20:38:03 / cg

o  webSocketStream: something

initialization
o  initialize
(comment from inherited method)
just to ignore initialize to objects which do not need it

queries
o  contentsOrContentsAsFile
only call this method,
when knowing the message is complete

o  hasOpCode

releasing
o  release
(comment from inherited method)
remove all references to objects that may refer to self.
Subclasses may redefine this method but should do a 'super release'.

writing
o  nextPutAll: someBytes



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sun, 08 Sep 2024 02:19:48 GMT