Skip to content

Stream of frames from server to client. #37

@erobledo

Description

@erobledo

I am trying to implement a one-way websocket endpoint that sends a never-ending stream of frames from the server to the client as soon as the connection is open and as soon as new data is available from some other part of the application.

I have searched through the oatpp websocket examples, and I have not found anything similar. All the examples seem to assume that the client initiates the communication, and all the frames sent from the server to the client are in "response" to a client frame.

It seems that server-initiated frames are not supported with the current oatpp-websocket framework. It looks like what I would need is to provide my own implementation of Task::run() inside oatpp::websocket::ConnectionHandler::handleConnection:

Is there any other way to achieve this? Or is this maybe a feature planned for the future?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions