Works great in Dolphin Smalltalk - Finally have websockets - WeOnlyDo Discussion board

Works great in Dolphin Smalltalk - Finally have websockets (wodWebServer / wodWebServer.NET)

by Jacob W, Saturday, December 01, 2018, 09:13 (1966 days ago) @ wodSupport

Hi Jacob,

wodWebServer's webSocket implementation should handle binary data, why do you think it can't?

You can always send HEX values or BASE64 values if you want to avoid raw binary data (which may be harder to handle in string variables), but even raw data should work.

How do we duplicate your problem?

Kind regards,
Jasmine.

Oh, I didn't realize it could already do it. The only websocket methods I see in the documentation and the generated COM controls is WebUser>WebSocketSendText and WebSocketReceiveText. The documentation shows:

object.WebSocketSendText (Text)
The WebSocketSendText(object,Text) syntax has these parts:
object An expression evaluating to an object of type WebUser
Text A string value that should be sent to WebSocket user.

So I am a bit confused about how to send binary data like a Float or Unsigned Int 8, 16, 32, etc.


Complete thread: