Skip to content

Commit 90d0d4e

Browse files
chore: add issue templates
1 parent aeecf9e commit 90d0d4e

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: 'bug'
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
15+
Please fill the following code example:
16+
17+
Socket.IO server version: `x.y.z`
18+
19+
*Server*
20+
21+
```js
22+
import { Server } from "socket.io";
23+
24+
const io = new Server(8080);
25+
26+
io.on("connection", (socket) => {
27+
// ...
28+
});
29+
```
30+
31+
Socket.IO java client version: `x.y.z`
32+
33+
*Client*
34+
35+
```java
36+
public class MyApplication {
37+
public static void main(String[] args) throws URISyntaxException {
38+
IO.Options options = IO.Options.builder()
39+
.build();
40+
41+
Socket socket = IO.socket("http://localhost:8080", options);
42+
43+
socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {
44+
@Override
45+
public void call(Object... args) {
46+
System.out.println("connect");
47+
}
48+
});
49+
50+
socket.open();
51+
}
52+
}
53+
```
54+
55+
**Expected behavior**
56+
A clear and concise description of what you expected to happen.
57+
58+
**Platform:**
59+
- Device: [e.g. Samsung S8]
60+
- OS: [e.g. Android 9.2]
61+
62+
**Additional context**
63+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: 'enhancement'
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/ISSUE_TEMPLATE/question.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
name: Ask a Question
3+
about: Ask the community for help
4+
title: ''
5+
labels: 'question'
6+
assignees: ''
7+
8+
---
9+

0 commit comments

Comments
 (0)