mirror of
https://github.com/tokio-rs/axum.git
synced 2024-11-29 03:32:52 +01:00
6 lines
140 B
JavaScript
6 lines
140 B
JavaScript
|
var eventSource = new EventSource('sse');
|
||
|
|
||
|
eventSource.onmessage = function(event) {
|
||
|
console.log('Message from server ', event.data);
|
||
|
}
|