Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ability to open socket streaming device logging #230

Merged
merged 6 commits into from Mar 16, 2023
Merged

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented Mar 16, 2023

Preparing to stream logs.

protocols: protocol,
WebSocket: WebSocket,
})
transport.on(SIDE_DATA, (msg: SideDeviceMessage) => {
const { type } = msg
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mmoskal does the simulator also use this codepath to create a websocket?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, the web socket code for VM is in wasmpre.ts

transport.on(SIDE_DATA, (msg: SideDeviceMessage) => {
const { type } = msg
switch (type) {
case "logs": {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO render messages properly

@pelikhan pelikhan merged commit b348212 into main Mar 16, 2023
2 of 3 checks passed
@pelikhan pelikhan deleted the logssocket branch March 16, 2023 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants