Skip to content

Commit

Permalink
enable scroll following if scrolled down to the bottom of the log file
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrews committed Aug 15, 2021
1 parent 185eeef commit 6874523
Show file tree
Hide file tree
Showing 4 changed files with 109 additions and 98 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ func wshandler(c echo.Context, pubSub *internal.Pubsub) error {
// Write
err := ws.WriteMessage(websocket.TextMessage, []byte(line))
if err != nil {
//TODO handle wsasend "An established connection was aborted by the software in your host machine"
// {"time":"2021-08-08T23:56:03.7797377-04:00","level":"ERROR","prefix":"echo","file":"main.go","line":"69","message":"write tcp [::1]:8081->[::1]:27058: wsasend: An established connection was aborted by the software in your host machine."}
c.Logger().Error(err)
}
}
Expand Down
151 changes: 65 additions & 86 deletions web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions web/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name": "logstation",
"version": "0.1.0",
"version": "2.0.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"faker": "^5.5.3",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.3",
"react-virtualized": "^9.22.3",
"react-virtualized": "9.21.1",
"web-vitals": "^1.1.2",
"websocket": "^1.0.34"
},
Expand Down
Loading

0 comments on commit 6874523

Please sign in to comment.