mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-25 08:37:29 +01:00
6c9651c14a
This makes it much clearer which dependencies each example has.
5 lines
140 B
JavaScript
5 lines
140 B
JavaScript
var eventSource = new EventSource('sse');
|
|
|
|
eventSource.onmessage = function(event) {
|
|
console.log('Message from server ', event.data);
|
|
}
|