mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-27 01:31:23 +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);
|
|
}
|