Skip to content

Commit

Permalink
doc: improve readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Totodore committed Sep 27, 2023
1 parent 68cffb6 commit f0ce116
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
<img src="https://socket.io/images/logo-dark.svg" align="right" width=200 />
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://socket.io/images/logo-dark.svg" align="right" width=200>

<img src="https://socket.io/images/logo.svg" align="right" width=200 />
</picture>

# [`Socketioxide`](https://github.com/totodore/socketioxide) 🚀🦀

Expand Down Expand Up @@ -46,6 +50,11 @@ A [***`socket.io`***](https://socket.io) server implementation in Rust that inte
<details> <summary><code>Chat app 💬 (see full example <a href="./examples/src/chat">here</a>)</code></summary>

```rust
use std::sync::Arc;

use serde::Deserialize;
use socketioxide::{adapter::LocalAdapter, Socket};
use tracing::info;

#[derive(Deserialize, Clone, Debug)]
struct Nickname(String);
Expand Down

0 comments on commit f0ce116

Please sign in to comment.