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