mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-15 19:25:54 +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);
|
|
}
|