Skip to content

1. How send in one msg data, id, event. 2. Can I change separator? #2

@adneg

Description

@adneg

wants to send one body and display all values
`

                               Log.d("test", "Received data:" + serverSentEvent.getData());


                               Log.d("test", "Received event:" + serverSentEvent.getEvent());


                               Log.d("test", "Received id:" + serverSentEvent.getLastId());

`

this is example code:
https://www.w3schools.com/html/html5_serversentevents.asp

https://www.w3schools.com/html/demo_sse.php

`

the end of the message is \n\n`
And RxSSE split event.
if i will have this in msg is problem and i use :
'\u0004'
https://www.fileformat.info/info/unicode/char/0004/index.htm

END OF TRANSMISSION

can i use this Unicode to split? and how..

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions