Giter Club home page Giter Club logo

websocketserver-unreal's Introduction

WebSocketServer-unreal

c++的websocket服务器,h5秒连,结构简单操作简单 c++ websocket server ,h5 client fast connect

---------------------------js example--------------------------------

	function MakeWebSocket() {
		let ws = new WebSocket("ws://192.168.0.119:26217");

		ws.onmessage = function (event) {
			event.data.text().then(text => {
				console.log(" >LJason< 日志:字符串 ",text);
				console.log(" >LJason< 日志:对象 ",JSON.parse(text));
			});
		};

		ws.onerror = function (event) {
			console.error(" >LJason< 错误:我BUG了");
		};

		ws.onclose = function (event) {
			console.warn(" >LJason< 警告:我关闭了",event);
		};

		ws.onopen=function (event) {
			console.log(" >LJason< 日志:我打开了++++++++++++++",event);
		}
	}

send msg ws.send("hello unreal ")

---------------------------ue example--------------------------------
\Plugins\ZWebSocketServer\Content\Level\Example see this level blueprint

---------------------------**--------------------------------
国人直接来我博客看
https://blog.csdn.net/ljason1993/article/details/123031678
这是个最基础版的server,拓展功能,大家自便,随意点

websocketserver-unreal's People

Contributors

ljason1993 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.