当前位置:网站首页>Unity websocket server
Unity websocket server
2022-07-07 10:49:00 【HCC2017】
public class WebSocketServers
{
int port = 9292;// Monitor port number
public WebSocketServer wsServer = null;
public WebSocketServers(int port)
{
if (wsServer == null)
{
InitServer(port);
}
}
public void CloseServer()
{
if (wsServer == null)
return;
wsServer.Stop();
}
void InitServer(int port)
{
IPAddress iP = new IPAddress(new byte[] { 127, 0, 0, 1 });
wsServer = new WebSocketServer(iP, port);
wsServer.AddWebSocketService<Chat>("/");
wsServer.AddWebSocketService<Chat>("/SetToken");
wsServe
边栏推荐
- Basic introduction of yarn and job submission process
- [dai6] mirror image of JZ27 binary tree
- 原型与原型链
- Différences entre les contraintes monotones et anti - monotones
- PHP \ newline cannot be output
- Gym installation pit records
- Schnuka: working principle of robot visual grasping machine visual grasping
- [OneNote] can't connect to the network and can't sync the problem
- July 10, 2022 "five heart public welfare" activity notice + registration entry (two-dimensional code)
- Mendeley--免费的文献管理工具,给论文自动插入参考文献
猜你喜欢

Leetcode-304: two dimensional area and retrieval - matrix immutable

软考信息处理技术员有哪些备考资料与方法?

CSAPP Bomb Lab 解析

【推薦系統 01】Rechub

简单易修改的弹框组件
![1324: [example 6.6] integer interval](/img/5d/29db4d51ec7a2685f8aeffe5be68da.png)
1324: [example 6.6] integer interval

BUUCTF---Reverse---reverse1

Online hard core tools

Cluster task scheduling system lsf/sge/slurm/pbs based on HPC scenario
![[STM32] solution to the problem that SWD cannot recognize devices after STM32 burning program](/img/03/41bb3870b9a6c2ee66099abac08eb3.png)
[STM32] solution to the problem that SWD cannot recognize devices after STM32 burning program
随机推荐
[detailed explanation of Huawei machine test] tall and short people queue up
openinstall与虎扑达成合作,挖掘体育文化产业数据价值
枪出惊龙,众“锁”周之
Trajectory planning for multi robot systems: methods and Applications Overview reading notes
seata 1.3.0 四种模式解决分布式事务(AT、TCC、SAGA、XA)
Monai version has been updated to 0.9. See what new functions it has
Unable to open kernel device '\.\vmcidev\vmx': operation completed successfully. Reboot after installing vmware workstation? Module "devicepoweron" failed to start. Failed to start the virtual machine
CC2530 ZigBee iar8.10.1 environment construction
简单易修改的弹框组件
香橙派OrangePi 4 LTS开发板通过Mini PCIE连接SATA硬盘的操作方法
leetcode-303:区域和检索 - 数组不可变
Hdu-2196 tree DP learning notes
【OneNote】无法连接到网络,无法同步问题
Différences entre les contraintes monotones et anti - monotones
"Dream Cup" 2017 Jiangsu information and future primary school summer camp it expert PK program design questions
Long list performance optimization scheme memo
Summary of router development knowledge
2022.7.5DAY597
Some online academic report websites and machine learning videos
What are the contents of the intermediate soft test, the software designer test, and the test outline?