You are not logged in.
Pages: 1
TWebSocketProtocolChat has the SendFrameJson function.
Is it possible to add this function to TWebSocketProcess?
Something like:
function TWebSocketProcess.SendFrameJson(const Json: RawUtf8): boolean;
var
frame: TWebSocketFrame;
begin
frame.opcode := focText;
frame.content := [];
frame.tix := 0;
FastSetRawByteString(frame.payload, pointer(Json), length(Json)); // temp copy
result := SendFrame(frame)
end;Offline
Pages: 1