nodejs and websockets on Windows - node.js

I looked through a number of posts on websockets, nodejs, and socket.io and could not find an answer to this question.
I would like to set up a development environment using nodejs to develop websockets application. I would prefer to run Windows since I have physical hardware running Windows and I am very comfortable with VS, but I could set up a Linux box running nginx or apache if necessary. I have explored iisnode, which has good support for node.js, but has no support for websockets since IIS 7.* does not support websockets. I also know Windows 8 supports websockets, but I need Server 2008 R2 and Windows 7 for other tasks, so I would like to avoid that until it is released.
What has worked well for other developers of websockets using nodejs with or without windows as a server development environment?

I am using NodeJS with WAMP (win x64 php 5.x, apache 2.2.x, mysql 5.x) and I'm pretty happy with it, besides a few problem keeping up a long time socket connection between a browser and NodeJS (socket.io). As it's a socket server on its own (with socket.io), i don't have any hooks with apache ! It's pure javascript. And if i need to interact with apache/php/mysql, i just do some posts requests... Also there are modules to interact with mysql.

Related

Webpagetest open source, can both server and client be installed on a single linux server?

Webpagetest offer a hosted service, but they dont support the countries I need to test.
I was going to setup WPT on a VPS linux server in the target country, but I cant find any installation instructions for the "client", only the server. There are some tutorials which use a local PC as a client, but this is not an option for us.
The question is can a linux server be both the server and client (so no other SW is needed) to test a page?
Found the answer here:
https://github.com/WPO-Foundation/wptagent/blob/master/docs/install.md
It DOES support linux as agent (as well as server).

developing an IIS webapp on linux

I know linux does not support IIS, since it requires Windows to exist on your machine.
I'm developing a .net core application, that needs to run in the end on an IIS server. This needs to stay as is, since it's the clients application I'm developing.
Currently my workstation is running Windows, so developing and hosting the application on local server is easy and straight forward using IISExpress.
To be honest I don't like Windows, since it has so many unknown parts running and doing weird stuff, is pretty slow and I don't have the customizability that I want, so I would prefer to use a linux based operating system.
There comes the problem - running IIS based applications is not possible on a local maschine using a linux operating system.
My first idea was to create an IIS docker and publish my application there, but that won't also work, since docker uses parent operating system kernel and IIS docker app requires a Windows based parent system.
The second idea was to use an external server, host IIS there and publish (or remote develop) the app there, but that gives me another system to worry about.
My ideal solution would be fully localized. IIS app running on the same machine.
Does anyone have experience with similar situations?
What would be the best solution here?

Connections to socket with Nodejs

I need to create Nodejs aplication that will connect to several devices using net-snmp, just one server connecting to 300 devices.
But i don't know if is a good idea to use NodeJS.
I started using NodeJS a short time ago.
From the documentary i dont think that should be done with NodeJS since its said on the Agent Architechture
It usually interacts with libraries, the network, plugins, other
processes, the file system, the local OS, and the local OS's kernel.

libEvent on Windows2008 server 64 or on ubuntu linux 13.0 server?

Currently I'm developing a client-server system on windows2008 server R2 64, a server will comsume 2 or 3 clients, each client will send seperate binary message with 1.6k each to the server by 20Pc/second, that is, every 50ms the client will send a message (size: 1.6k) to server.
I supposed that libEvent is a good toolkit and have a good performance based questions Stackoverflow. And the libEvent version is 2.0.21.X64, it used I/O Completion Ports in windows platform, and the end user need to monitor the server status, they don't know how to use Ubuntu linux, so I selected windows 2008 server as the server.
However, after I developed the windows server program, it losts 30+ binary messages, but our application must be stable and all the messages must be received.
Are there something wrong on the windows network card settings? Or I should switch the server to Ubuntu server?
Thank you very much in advanced for your support!

Local pi server running node and websockets

I'm just wondering is it possible to run a local server using node (node would be running on a raspberry pi) and communicate with it via a web browser on a different machine on the same network using websockets? I'm looking into using a browser as a control system for a project I'm working on. If it is possible is there any references I can look at?
Thank you,
Techhead55.
EDIT
I already have node up and running on the pi, it's just that I'm not sure if you can and how you implement a local server and use sockets to communicate with it in a bowser on the same network.
Not sure if you specifically ask about Node, but here is an example of a WebSocket server running on Pi, and browsers connecting to that server: http://tavendo.com/blog/post/pypy-on-the-pi/
The example does Publish & Subscribe over WebSocket using WAMP (http://wamp.ws).
Here is a similar example running on Arduino Yun that shows how to connected hardware, and publish data in real-time via WebSocket, receiving data in a browser, and real-time rendering a chart: http://tavendo.com/blog/post/arduino-yun-with-autobahn/
Disclosure: I am original author of Autobahn and work for Tavendo.
Yes.
Here is great manual from Matthias Rüedlinger:
http://blog.rueedlinger.ch/2013/03/raspberry-pi-and-nodejs-basic-setup/
Also installation of ghost with node on RPI is very nice :)
http://bit.ly/1cFwFAQ

Resources